diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2012-08-20 17:34:12 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2012-08-20 17:34:12 +1200 |
commit | 40e9874b5ce72d9de46f5a18251bfe283a76df13 (patch) | |
tree | ed7d17beae60d20e9a838418706da788fab83c8f /liblightdm-gobject/session.c | |
parent | 7e521a6cf33c57e762ee5a04c4a0e6756838f94c (diff) | |
download | lightdm-40e9874b5ce72d9de46f5a18251bfe283a76df13.tar.gz |
Start work on supporting remote session types
Diffstat (limited to 'liblightdm-gobject/session.c')
-rw-r--r-- | liblightdm-gobject/session.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/liblightdm-gobject/session.c b/liblightdm-gobject/session.c index 603ddb7f..577e3274 100644 --- a/liblightdm-gobject/session.c +++ b/liblightdm-gobject/session.c @@ -34,6 +34,7 @@ G_DEFINE_TYPE (LightDMSession, lightdm_session, G_TYPE_OBJECT); static gboolean have_sessions = FALSE; static GList *sessions = NULL; +static GList *remote_sessions = NULL; static gint compare_session (gconstpointer a, gconstpointer b) @@ -209,6 +210,20 @@ lightdm_get_sessions (void) } /** + * lightdm_get_remote_sessions: + * + * Get the available remote sessions. + * + * Return value: (element-type LightDMSession) (transfer none): A list of #LightDMSession + **/ +GList * +lightdm_get_remote_sessions (void) +{ + update_sessions (); + return remote_sessions; +} + +/** * lightdm_session_get_key: * @session: A #LightDMSession * |