summaryrefslogtreecommitdiff
path: root/libgnome-desktop/gnome-pnp-ids.h
diff options
context:
space:
mode:
authorKalev Lember <klember@redhat.com>2015-09-08 19:02:46 +0200
committerKalev Lember <klember@redhat.com>2015-09-08 19:14:05 +0200
commite4396139eff0d88f113aa5a5698e956215d4ee1d (patch)
tree0e1847e8bce8aa0158cba24baa6f5dedadfa3dae /libgnome-desktop/gnome-pnp-ids.h
parent4c35a8201131c3382a4b7106c110e3ceceea04d2 (diff)
downloadgnome-desktop-e4396139eff0d88f113aa5a5698e956215d4ee1d.tar.gz
Support g_autoptr() for all libgnome-desktop object types
... and bump glib dep to 2.44.0 for the cleanup macro support. This allows using e.g. g_autoptr(GnomeBG) in other programs, but does not make libgnome-desktop itself use g_autoptr.
Diffstat (limited to 'libgnome-desktop/gnome-pnp-ids.h')
-rw-r--r--libgnome-desktop/gnome-pnp-ids.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgnome-desktop/gnome-pnp-ids.h b/libgnome-desktop/gnome-pnp-ids.h
index cfd38464..e204b210 100644
--- a/libgnome-desktop/gnome-pnp-ids.h
+++ b/libgnome-desktop/gnome-pnp-ids.h
@@ -47,6 +47,8 @@ struct _GnomePnpIdsClass
GObjectClass parent_class;
};
+G_DEFINE_AUTOPTR_CLEANUP_FUNC(GnomePnpIds, g_object_unref)
+
GType gnome_pnp_ids_get_type (void);
GnomePnpIds *gnome_pnp_ids_new (void);
gchar *gnome_pnp_ids_get_pnp_id (GnomePnpIds *pnp_ids,