]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - src/session-config.h
Load all users only when really needed
[sojka/lightdm.git] / src / session-config.h
1 /*
2  * Copyright (C) 2013 Robert Ancell.
3  * Author: Robert Ancell <robert.ancell@canonical.com>
4  *
5  * This program is free software: you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License as published by the Free Software
7  * Foundation, either version 3 of the License, or (at your option) any later
8  * version. See http://www.gnu.org/copyleft/gpl.html the full text of the
9  * license.
10  */
11
12 #ifndef SESSION_CONFIG_H_
13 #define SESSION_CONFIG_H_
14
15 #include <glib-object.h>
16
17 G_BEGIN_DECLS
18
19 #define SESSION_CONFIG_TYPE           (session_config_get_type())
20 #define SESSION_CONFIG(obj)           (G_TYPE_CHECK_INSTANCE_CAST ((obj), SESSION_CONFIG_TYPE, SessionConfig))
21 #define SESSION_CONFIG_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), SESSION_CONFIG_TYPE, SessionConfigClass))
22 #define SESSION_CONFIG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), SESSION_CONFIG_TYPE, SessionConfigClass))
23
24 typedef struct SessionConfigPrivate SessionConfigPrivate;
25
26 typedef struct
27 {
28     GObject               parent_instance;
29     SessionConfigPrivate *priv;
30 } SessionConfig;
31
32 typedef struct
33 {
34     GObjectClass parent_class;
35 } SessionConfigClass;
36
37 GType session_config_get_type (void);
38
39 SessionConfig *session_config_new_from_file (const gchar *filename, const gchar *default_session_type, GError **error);
40
41 const gchar *session_config_get_command (SessionConfig *config);
42
43 const gchar *session_config_get_session_type (SessionConfig *config);
44
45 gchar **session_config_get_desktop_names (SessionConfig *config);
46
47 gboolean session_config_get_allow_greeter (SessionConfig *config);
48
49 G_END_DECLS
50
51 #endif /* SESSION_CONFIG_H_ */