summaryrefslogtreecommitdiff
path: root/gudev/gudevclient.h
diff options
context:
space:
mode:
Diffstat (limited to 'gudev/gudevclient.h')
-rw-r--r--gudev/gudevclient.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gudev/gudevclient.h b/gudev/gudevclient.h
index 23bfce6..fc1a4b4 100644
--- a/gudev/gudevclient.h
+++ b/gudev/gudevclient.h
@@ -35,6 +35,10 @@ G_BEGIN_DECLS
#define G_UDEV_IS_CLIENT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_UDEV_TYPE_CLIENT))
#define G_UDEV_CLIENT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_UDEV_TYPE_CLIENT, GUdevClientClass))
+#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
+G_DEFINE_AUTOPTR_CLEANUP_FUNC (GUdevClient, g_object_unref)
+#endif
+
typedef struct _GUdevClientClass GUdevClientClass;
typedef struct _GUdevClientPrivate GUdevClientPrivate;