2
* lxdm.h - interface of lxdm
4
* Copyright 2009 dgod <dgod.osa@gmail.com>
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 3 of the License, or
9
* (at your option) any later version.
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
27
extern GKeyFile *config;
29
void log_print(char *fmt,...);
30
int lxdm_auth_user(char *user,char *pass,struct passwd **ppw);
31
void lxdm_do_login(struct passwd *pw,char *session,char *lang);
32
void lxdm_do_reboot(void);
33
void lxdm_do_shutdown(void);
34
int lxdm_cur_session(void);
36
#define AUTH_SUCCESS 0
37
#define AUTH_BAD_USER 1
44
void ui_prepare(void);
45
int ui_do_login(void);
52
GSList *do_scan_xsessions(void);
53
void free_xsessions(GSList *);