PolicyKit: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Apr 26 16:31:07 UTC 2022


 src/polkitagent/polkitagenttypes.h |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 63c02dc9e80e99e38c04514917a49a574e344e36
Author: Benedikt Ames <14768-wisperwind at users.noreply.gitlab.freedesktop.org>
Date:   Tue Apr 26 16:31:05 2022 +0000

    polkitagent:  Add g_autoptr() support for GObject-derived types

diff --git a/src/polkitagent/polkitagenttypes.h b/src/polkitagent/polkitagenttypes.h
index 1de03c6..bcc59fb 100644
--- a/src/polkitagent/polkitagenttypes.h
+++ b/src/polkitagent/polkitagenttypes.h
@@ -39,6 +39,12 @@ typedef struct _PolkitAgentTextListener PolkitAgentTextListener;
 struct _PolkitAgentSession;
 typedef struct _PolkitAgentSession PolkitAgentSession;
 
+#if GLIB_CHECK_VERSION(2, 44, 0)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentListener, g_object_unref)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentTextListener, g_object_unref)
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (PolkitAgentSession, g_object_unref)
+#endif
+
 G_END_DECLS
 
 #endif /* __POLKIT_AGENT_TYPES_H */


More information about the hal-commit mailing list