diff options
Diffstat (limited to 'rdcp_util.h')
-rw-r--r-- | rdcp_util.h | 16 |
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 |