diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-08-13 15:00:30 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-08-16 18:58:27 +0100 |
commit | f7d75e922ef19eb5108ab19e1f030794fe767eaa (patch) | |
tree | 51f213a81b3f5e37d70d19e8708d21190e2ea5b6 | |
parent | 5ee749cd25f221c382fa4b9545cff62eefcb10cf (diff) | |
download | dconf-f7d75e922ef19eb5108ab19e1f030794fe767eaa.tar.gz |
service: Add some initial g_autoptr() support
This doesn’t bump our GLib dependency, since we already depend on GLib
2.44.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
-rw-r--r-- | service/dconf-writer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/service/dconf-writer.h b/service/dconf-writer.h index a41f115..17360c9 100644 --- a/service/dconf-writer.h +++ b/service/dconf-writer.h @@ -20,7 +20,9 @@ #ifndef __dconf_writer_h__ #define __dconf_writer_h__ +#include <glib.h> #include <gio/gio.h> +#include <gobject/gobject.h> #include "../common/dconf-changeset.h" #include "dconf-generated.h" @@ -65,6 +67,7 @@ struct _DConfWriter DConfWriterPrivate *priv; }; +G_DEFINE_AUTOPTR_CLEANUP_FUNC (DConfWriter, g_object_unref) GType dconf_writer_get_type (void); |