]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blobdiff - liblightdm-gobject/lightdm/user.h
Revert r2392 - it seems to have broken ABI in liblightdm-gobject
[sojka/lightdm.git] / liblightdm-gobject / lightdm / user.h
index f2bea3fc72d5907b69fd39b3fe7bce121f5ce631..d092477a8a700e6c8ccfc9fe348ac7945d12c3c1 100644 (file)
@@ -76,6 +76,19 @@ typedef struct
     void (*reserved6) (void);
 } LightDMUserListClass;
 
+#ifdef GLIB_VERSION_2_44
+typedef LightDMUser *LightDMUser_autoptr;
+static inline void glib_autoptr_cleanup_LightDMUser (LightDMUser **_ptr)
+{
+    glib_autoptr_cleanup_GObject ((GObject **) _ptr);
+}
+typedef LightDMUserList *LightDMUserList_autoptr;
+static inline void glib_autoptr_cleanup_LightDMUserList (LightDMUserList **_ptr)
+{
+    glib_autoptr_cleanup_GObject ((GObject **) _ptr);
+}
+#endif
+
 GType lightdm_user_list_get_type (void);
 
 GType lightdm_user_get_type (void);