diff options
author | Thomas Haller <thaller@redhat.com> | 2016-03-29 13:01:18 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-03-29 13:01:18 +0200 |
commit | 53011592af2d282947a513b2b7da1b3b08be2aea (patch) | |
tree | af9f3943aac5ff2ea1a685567301e287b400d961 /shared/nm-macros-internal.h | |
parent | c473cb42d0d7a2157ddba119aac17fdb9c448e2d (diff) | |
parent | b645a3b39d574fdf4e02bae3ee18bea8a3d3f95c (diff) | |
download | NetworkManager-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.h | 7 |
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 */ |