]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blobdiff - liblightdm-gobject/lightdm/session.h
Revert r2392 - it seems to have broken ABI in liblightdm-gobject
[sojka/lightdm.git] / liblightdm-gobject / lightdm / session.h
index 5732117f79ba4c25255ead4c6743bf2b632717e8..9c447e1f9087f6415bf62e28ebf1f7cb87da5996 100644 (file)
@@ -40,6 +40,14 @@ typedef struct
     void (*reserved6) (void);
 } LightDMSessionClass;
 
+#ifdef GLIB_VERSION_2_44
+typedef LightDMSession *LightDMSession_autoptr;
+static inline void glib_autoptr_cleanup_LightDMSession (LightDMSession **_ptr)
+{
+    glib_autoptr_cleanup_GObject ((GObject **) _ptr);
+}
+#endif
+
 GType lightdm_session_get_type (void);
 
 GList *lightdm_get_sessions (void);
@@ -48,6 +56,8 @@ GList *lightdm_get_remote_sessions (void);
 
 const gchar *lightdm_session_get_key (LightDMSession *session);
 
+const gchar *lightdm_session_get_session_type (LightDMSession *session);
+
 const gchar *lightdm_session_get_name (LightDMSession *session);
 
 const gchar *lightdm_session_get_comment (LightDMSession *session);