Commit 4ccfa7a7 authored by Thomas Haller's avatar Thomas Haller

core: add nm_ip_config_get_ifindex() helper

parent 7d4def27
......@@ -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)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment