diff options
author | Thomas Haller <thaller@redhat.com> | 2019-07-11 17:59:45 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2019-07-27 21:24:27 +0200 |
commit | a7de48515c50c35376a782ca67fbb6539e793c1f (patch) | |
tree | 840db3aaac1dffcdda767106923ad3e3f79eb479 | |
parent | 1fc047958de3cc512cb76f7c021e84fd15dbb90b (diff) | |
download | NetworkManager-a7de48515c50c35376a782ca67fbb6539e793c1f.tar.gz |
platform: add nm_platform_lookup_object_by_addr_family() util
-rw-r--r-- | src/platform/nmp-object.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/platform/nmp-object.h b/src/platform/nmp-object.h index 95c3eb5c94..fc844aaf86 100644 --- a/src/platform/nmp-object.h +++ b/src/platform/nmp-object.h @@ -1058,4 +1058,15 @@ nm_platform_lookup_ip6_route_by_weak_id (NMPlatform *platform, return nm_platform_lookup (platform, &lookup); } +static inline const NMDedupMultiHeadEntry * +nm_platform_lookup_object_by_addr_family (NMPlatform *platform, + NMPObjectType obj_type, + int addr_family) +{ + NMPLookup lookup; + + nmp_lookup_init_object_by_addr_family (&lookup, obj_type, addr_family); + return nm_platform_lookup (platform, &lookup); +} + #endif /* __NMP_OBJECT_H__ */ |