]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - liblightdm-gobject/lightdm/session.h
f8a4a10f0007e0b3fdfd1442d05c9bacc9f9cc34
[sojka/lightdm.git] / liblightdm-gobject / lightdm / session.h
1 /*
2  * Copyright (C) 2010 Robert Ancell.
3  * Author: Robert Ancell <robert.ancell@canonical.com>
4  *
5  * This library is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU Lesser General Public License as published by the Free
7  * Software Foundation; either version 2 or version 3 of the License.
8  * See http://www.gnu.org/copyleft/lgpl.html the full text of the license.
9  */
10
11 #ifndef LIGHTDM_SESSION_H_
12 #define LIGHTDM_SESSION_H_
13
14 #include <glib-object.h>
15
16 G_BEGIN_DECLS
17
18 struct _LightDMSessionClass
19 {
20     /*< private >*/
21     GObjectClass parent_class;
22 };
23
24 #define LIGHTDM_TYPE_SESSION (lightdm_session_get_type())
25
26 G_DECLARE_FINAL_TYPE (LightDMSession, lightdm_session, LIGHTDM, SESSION, GObject)
27
28 GList *lightdm_get_sessions (void);
29
30 GList *lightdm_get_remote_sessions (void);
31
32 const gchar *lightdm_session_get_key (LightDMSession *session);
33
34 const gchar *lightdm_session_get_session_type (LightDMSession *session);
35
36 const gchar *lightdm_session_get_name (LightDMSession *session);
37
38 const gchar *lightdm_session_get_comment (LightDMSession *session);
39
40 G_END_DECLS
41
42 #endif /* LIGHTDM_SESSION_H_ */