diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2019-02-11 17:54:13 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2019-02-17 19:39:07 +0100 |
commit | 5efa9ff34888171d8feb93890023af813c4fc5e1 (patch) | |
tree | d42dc3a44c55d1ebc68b0d6e9052e8bc2d247c63 /shared/nm-utils | |
parent | 1423ad24c0dd76dbd80b2bbfb046c408c72d67ec (diff) | |
download | NetworkManager-5efa9ff34888171d8feb93890023af813c4fc5e1.tar.gz |
shared: add nm_auto_decref_json
Diffstat (limited to 'shared/nm-utils')
-rw-r--r-- | shared/nm-utils/nm-jansson.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shared/nm-utils/nm-jansson.h b/shared/nm-utils/nm-jansson.h index 4f37ff46f0..5a73231f05 100644 --- a/shared/nm-utils/nm-jansson.h +++ b/shared/nm-utils/nm-jansson.h @@ -41,6 +41,9 @@ n = json_object_iter_next(object, json_object_key_to_iter(key))) #endif +NM_AUTO_DEFINE_FCN0 (json_t *, _nm_auto_decref_json, json_decref) +#define nm_auto_decref_json nm_auto(_nm_auto_decref_json) + #endif /* WITH_JANSON */ #endif /* __NM_JANSSON_H__ */ |