core: move simple utils function from "nm-platform-utils.h"

Most functions defined in "nm-platform-utils.h" perform a lookup
of link properties, for example via ethtool or sysfs. Those functions
depend on the system configuration, such as the current network namespace.

Move the simple helper functions away to "nm-core-internal.h", so that
all remaining functions from "nm-platform-utils.h" are really related to
somthing that interacts with the system/kernel.
This commit is contained in:
Thomas Haller
2016-03-07 11:45:44 +01:00
parent 0e90f1ba83
commit 6165df788d
8 changed files with 127 additions and 125 deletions

View File

@@ -5196,7 +5196,7 @@ ip4_address_add (NMPlatform *platform,
plen,
&peer_addr,
flags,
nmp_utils_ip4_address_is_link_local (addr) ? RT_SCOPE_LINK : RT_SCOPE_UNIVERSE,
nm_utils_ip4_address_is_link_local (addr) ? RT_SCOPE_LINK : RT_SCOPE_UNIVERSE,
lifetime,
preferred,
label);