~ubuntu-branches/ubuntu/oneiric/lxdm/oneiric

« back to all changes in this revision

Viewing changes to src/lxdm.h

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lavergne
  • Date: 2010-01-21 00:37:45 UTC
  • Revision ID: james.westby@ubuntu.com-20100121003745-e0tkpokmhz0owhpz
Tags: upstream-0.1.0
ImportĀ upstreamĀ versionĀ 0.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *      lxdm.h - interface of lxdm
 
3
 *
 
4
 *      Copyright 2009 dgod <dgod.osa@gmail.com>
 
5
 *
 
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.
 
10
 *
 
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.
 
15
 *
 
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,
 
19
 *      MA 02110-1301, USA.
 
20
 */
 
21
 
 
22
#ifndef _LXDM_H_
 
23
#define _LXDM_H_
 
24
 
 
25
#include <pwd.h>
 
26
 
 
27
extern GKeyFile *config;
 
28
 
 
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);
 
35
 
 
36
#define AUTH_SUCCESS    0
 
37
#define AUTH_BAD_USER   1
 
38
#define AUTH_FAIL       2
 
39
#define AUTH_PRIV       3
 
40
#define AUTH_ERROR      4
 
41
 
 
42
void ui_drop(void);
 
43
int ui_main(void);
 
44
void ui_prepare(void);
 
45
int ui_do_login(void);
 
46
 
 
47
typedef struct{
 
48
        char *name;
 
49
        char *exec;
 
50
}LXSESSION;
 
51
 
 
52
GSList *do_scan_xsessions(void);
 
53
void free_xsessions(GSList *);
 
54
 
 
55
#endif/*_LXDM_H_*/