diff options
author | Philip Withnall <withnall@endlessm.com> | 2020-09-11 12:41:10 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2020-09-11 12:41:10 +0100 |
commit | 0a866a3caa55c47d25b416a97460bbf0ade2a56c (patch) | |
tree | f7f8de0f91a1f3b49e26b88fe29c1ac919c09c0a /libgeoclue/gclue-simple.h | |
parent | 5d15b65e60df84f741b436c254dc5eb4dc8e966c (diff) | |
download | geoclue-0a866a3caa55c47d25b416a97460bbf0ade2a56c.tar.gz |
libgeoclue: Add g_autoptr() support to public API
It’s alright to include the `G_DEFINE_AUTOPTR_CLEANUP_FUNC` macro
unconditionally in the header, as libgeoclue depends on GLib ≥ 2.44,
when that macro was introduced.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Diffstat (limited to 'libgeoclue/gclue-simple.h')
-rw-r--r-- | libgeoclue/gclue-simple.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgeoclue/gclue-simple.h b/libgeoclue/gclue-simple.h index fd7b832..97fe27b 100644 --- a/libgeoclue/gclue-simple.h +++ b/libgeoclue/gclue-simple.h @@ -56,6 +56,8 @@ struct _GClueSimpleClass GObjectClass parent_class; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC (GClueSimple, g_object_unref) + GType gclue_simple_get_type (void) G_GNUC_CONST; void gclue_simple_new (const char *desktop_id, |