mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-27 16:20:34 +01:00
shared: add nm_auto_unref_keyfile macro
This commit is contained in:
parent
0858241776
commit
4b58ecb592
1 changed files with 3 additions and 0 deletions
|
|
@ -253,6 +253,9 @@ static inline int nm_close (int fd);
|
|||
NM_AUTO_DEFINE_FCN_VOID0 (void *, _nm_auto_free_impl, free)
|
||||
#define nm_auto_free nm_auto(_nm_auto_free_impl)
|
||||
|
||||
NM_AUTO_DEFINE_FCN0 (GKeyFile *, _nm_auto_unref_keyfile, g_key_file_unref);
|
||||
#define nm_auto_unref_keyfile nm_auto(_nm_auto_unref_keyfile)
|
||||
|
||||
NM_AUTO_DEFINE_FCN0 (GVariantIter *, _nm_auto_free_variant_iter, g_variant_iter_free)
|
||||
#define nm_auto_free_variant_iter nm_auto(_nm_auto_free_variant_iter)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue