summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2018-08-13 15:00:30 +0100
committerPhilip Withnall <withnall@endlessm.com>2018-08-16 18:58:27 +0100
commitf7d75e922ef19eb5108ab19e1f030794fe767eaa (patch)
tree51f213a81b3f5e37d70d19e8708d21190e2ea5b6 /service
parent5ee749cd25f221c382fa4b9545cff62eefcb10cf (diff)
downloaddconf-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>
Diffstat (limited to 'service')
-rw-r--r--service/dconf-writer.h3
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);