summaryrefslogtreecommitdiffstats
path: root/rdcp_util.h
diff options
context:
space:
mode:
authorJohn Dennis <jdennis@redhat.com>2013-04-11 08:05:08 -0400
committerJohn Dennis <jdennis@redhat.com>2013-04-11 08:05:08 -0400
commit6b6fc332a421674109afb759d05c32c47dcc378f (patch)
tree586c5161ddbead5c5becfa0b9d654ba9fcd846e3 /rdcp_util.h
parent5109fc7f1592036a662c2b678727db93d9b6a8cd (diff)
downloadrealmd-cim-6b6fc332a421674109afb759d05c32c47dcc378f.tar.gz
realmd-cim-6b6fc332a421674109afb759d05c32c47dcc378f.tar.xz
realmd-cim-6b6fc332a421674109afb759d05c32c47dcc378f.zip
Implement get_joined_domain(), used to initialize Domain property.
Add G_VARIANT_FREE & G_VARIANT_ITER_FREE macros that free the object and set the pointer to NULL.
Diffstat (limited to 'rdcp_util.h')
-rw-r--r--rdcp_util.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/rdcp_util.h b/rdcp_util.h
index eb7e533..aef255a 100644
--- a/rdcp_util.h
+++ b/rdcp_util.h
@@ -13,6 +13,22 @@
#define REALMD_SERVICE_NAME "OpenLMI Realmd Service"
+#define G_VARIANT_FREE(variant) \
+{ \
+ if (variant) { \
+ g_variant_unref(variant); \
+ variant = NULL; \
+ } \
+}
+
+#define G_VARIANT_ITER_FREE(iter) \
+{ \
+ if (iter) { \
+ g_variant_iter_free(iter); \
+ iter = NULL; \
+ } \
+}
+
/**
* octetstring_parse
* @octetstring Pointer to octetstring data