2 * Copyright (C) 2010 Robert Ancell.
3 * Author: Robert Ancell <robert.ancell@canonical.com>
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.
11 #ifndef LIGHTDM_SESSION_H_
12 #define LIGHTDM_SESSION_H_
14 #include <glib-object.h>
18 struct _LightDMSessionClass
21 GObjectClass parent_class;
24 #define LIGHTDM_TYPE_SESSION (lightdm_session_get_type())
26 G_DECLARE_FINAL_TYPE (LightDMSession, lightdm_session, LIGHTDM, SESSION, GObject)
28 GList *lightdm_get_sessions (void);
30 GList *lightdm_get_remote_sessions (void);
32 const gchar *lightdm_session_get_key (LightDMSession *session);
34 const gchar *lightdm_session_get_session_type (LightDMSession *session);
36 const gchar *lightdm_session_get_name (LightDMSession *session);
38 const gchar *lightdm_session_get_comment (LightDMSession *session);
42 #endif /* LIGHTDM_SESSION_H_ */