]> 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 13ddcd9f877bcc8d97be6b91c5e400170906af56..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);