mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 00:38:07 +02:00
core: add nm_ip_config_get_ifindex() helper
(cherry picked from commit 4ccfa7a79a)
This commit is contained in:
parent
8aea6745c4
commit
0d3f19774f
1 changed files with 6 additions and 0 deletions
|
|
@ -350,6 +350,12 @@ nm_ip_config_get_addr_family (const NMIPConfig *config)
|
|||
} \
|
||||
} G_STMT_END
|
||||
|
||||
static inline int
|
||||
nm_ip_config_get_ifindex (const NMIPConfig *self)
|
||||
{
|
||||
_NM_IP_CONFIG_DISPATCH (self, nm_ip4_config_get_ifindex, nm_ip6_config_get_ifindex);
|
||||
}
|
||||
|
||||
static inline int
|
||||
nm_ip_config_get_dns_priority (const NMIPConfig *self)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue