mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 17:50:14 +01:00
core: add nm_ip_config_get_ifindex() helper
This commit is contained in:
parent
7d4def2764
commit
4ccfa7a79a
1 changed files with 6 additions and 0 deletions
|
|
@ -373,6 +373,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 void
|
||||
nm_ip_config_add_address (NMIPConfig *self, const NMPlatformIPAddress *address)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue