summaryrefslogtreecommitdiff
path: root/shared/nm-macros-internal.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-03-29 13:01:18 +0200
committerThomas Haller <thaller@redhat.com>2016-03-29 13:01:18 +0200
commit53011592af2d282947a513b2b7da1b3b08be2aea (patch)
treeaf9f3943aac5ff2ea1a685567301e287b400d961 /shared/nm-macros-internal.h
parentc473cb42d0d7a2157ddba119aac17fdb9c448e2d (diff)
parentb645a3b39d574fdf4e02bae3ee18bea8a3d3f95c (diff)
downloadNetworkManager-th/mif.tar.gz
Merge branch master of git://anongit.freedesktop.org/NetworkManager/NetworkManagerth/mif
Diffstat (limited to 'shared/nm-macros-internal.h')
-rw-r--r--shared/nm-macros-internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/shared/nm-macros-internal.h b/shared/nm-macros-internal.h
index 152cbf67ee..4176231800 100644
--- a/shared/nm-macros-internal.h
+++ b/shared/nm-macros-internal.h
@@ -36,6 +36,13 @@
#define nm_auto_free nm_auto(_nm_auto_free_impl)
GS_DEFINE_CLEANUP_FUNCTION(void*, _nm_auto_free_impl, free)
+static inline void
+_nm_auto_unset_gvalue_impl (GValue *v)
+{
+ g_value_unset (v);
+}
+#define nm_auto_unset_gvalue nm_auto(_nm_auto_unset_gvalue_impl)
+
/********************************************************/
/* http://stackoverflow.com/a/11172679 */