summaryrefslogtreecommitdiff
path: root/src/NetworkManagerUtils.h
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-12-12 17:11:34 +0100
committerThomas Haller <thaller@redhat.com>2018-12-13 09:16:32 +0100
commit589063db3b08a5899eae1e6c84eb68bd309d2736 (patch)
treed357fc666cc4593e82fbd3df8306aaf239978bfc /src/NetworkManagerUtils.h
parentadbb9eb2466913bc518ad1904b1727c49f08a2fc (diff)
downloadNetworkManager-589063db3b08a5899eae1e6c84eb68bd309d2736.tar.gz
core: use addr-family argument for nm_utils_get_ip_config_method()
Recently, more and more code was refactored to use an addr_family integer to distinguish between IPv4 and IPv6. Refactor nm_utils_get_ip_config_method() and nm_device_get_effective_ip_config_method() to do that too. If we use different identifiers, we need to translate from one to another and its inconsistent. Also, accessing a GType is an unnecessary function call, instead of a plain constant.
Diffstat (limited to 'src/NetworkManagerUtils.h')
-rw-r--r--src/NetworkManagerUtils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/NetworkManagerUtils.h b/src/NetworkManagerUtils.h
index e39df8676d..5e7012241a 100644
--- a/src/NetworkManagerUtils.h
+++ b/src/NetworkManagerUtils.h
@@ -26,6 +26,9 @@
/*****************************************************************************/
+const char *nm_utils_get_ip_config_method (NMConnection *connection,
+ int addr_family);
+
const char *nm_utils_get_shared_wifi_permission (NMConnection *connection);
void nm_utils_complete_generic (NMPlatform *platform,