libnm: add nm_auto_unref_range cleanup macro

This is useful.
This commit is contained in:
Thomas Haller 2022-11-30 16:37:31 +01:00
parent 037fdcaf20
commit bf5e75a299
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -50,6 +50,9 @@ NM_AUTO_DEFINE_FCN0(NMTeamLinkWatcher *,
#define nm_auto_unref_wgpeer nm_auto(_nm_auto_unref_wgpeer)
NM_AUTO_DEFINE_FCN0(NMWireGuardPeer *, _nm_auto_unref_wgpeer, nm_wireguard_peer_unref);
#define nm_auto_unref_range nm_auto(_nm_auto_unref_range)
NM_AUTO_DEFINE_FCN0(const NMRange *, _nm_auto_unref_range, nm_range_unref);
/****************************************************************************/
const char **nm_utils_bond_option_arp_ip_targets_split(const char *arp_ip_target);