summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2017-12-15 15:24:04 +1300
committerRobert Ancell <robert.ancell@canonical.com>2017-12-15 15:24:04 +1300
commit6368bfd7449e172721fb2f06472bd264f89aa314 (patch)
treeac7128b07ad3e79448fb28f4c18db3d39bb4bc20
parent5553e8f483a81085995d66319f05e8d930a12593 (diff)
Generate autocleanup definitions in libaccountsservice
-rw-r--r--src/libaccountsservice/act-user-manager.h4
-rw-r--r--src/libaccountsservice/act-user.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/libaccountsservice/act-user-manager.h b/src/libaccountsservice/act-user-manager.h
index ae5fd2e..f337ad2 100644
--- a/src/libaccountsservice/act-user-manager.h
+++ b/src/libaccountsservice/act-user-manager.h
@@ -145,6 +145,10 @@ gboolean act_user_manager_delete_user_finish (ActUserManager *
GAsyncResult *result,
GError **error);
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (ActUserManager, g_object_unref)
+#endif
+
G_END_DECLS
#endif /* __ACT_USER_MANAGER_H__ */
diff --git a/src/libaccountsservice/act-user.h b/src/libaccountsservice/act-user.h
index 76dceb6..c685fcc 100644
--- a/src/libaccountsservice/act-user.h
+++ b/src/libaccountsservice/act-user.h
@@ -120,6 +120,10 @@ void act_user_set_locked (ActUser *user,
void act_user_set_automatic_login (ActUser *user,
gboolean enabled);
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (ActUser, g_object_unref)
+#endif
+
G_END_DECLS
#endif /* __ACT_USER_H__ */