summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2015-04-28 07:55:30 +0200
committerThomas Haller <thaller@redhat.com>2015-06-17 15:28:01 +0200
commit3d1ab669e3000592aeb73c1a4d47c71a0b68938d (patch)
treeb283c440c5172b4042ff1e0e8fd9a5f6c612eb1c
parentbae47558ba31d1e658facd8f249a0e2d3ede1e53 (diff)
downloadNetworkManager-3d1ab669e3000592aeb73c1a4d47c71a0b68938d.tar.gz
platform: expose nm_link_type_to_string() function
Given the name nm_link_type_to_string(), we would not expect to find it in nm-linux-platform.c. It either should be named nm_platform_link_type_to_string() and be put in a new nm-platform-utils.c file, or it should be named nm_utils_link_type_to_string() and be put in NetworkManagerUtils.h. For now, just leave it here. (cherry picked from commit b538adf12393f67d60f7f5ec74b2a3c1b968f35b)
-rw-r--r--src/platform/nm-linux-platform.c2
-rw-r--r--src/platform/nm-platform.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c
index 36cbbc637a..6ee5f4b053 100644
--- a/src/platform/nm-linux-platform.c
+++ b/src/platform/nm-linux-platform.c
@@ -913,7 +913,7 @@ nm_link_type_to_rtnl_type_string (NMLinkType type)
g_return_val_if_reached (NULL);
}
-static const char *
+const char *
nm_link_type_to_string (NMLinkType type)
{
int i;
diff --git a/src/platform/nm-platform.h b/src/platform/nm-platform.h
index 626008a7ed..871daac0d6 100644
--- a/src/platform/nm-platform.h
+++ b/src/platform/nm-platform.h
@@ -499,6 +499,8 @@ NMPlatform *nm_platform_try_get (void);
/******************************************************************/
+const char *nm_link_type_to_string (NMLinkType link_type);
+
void nm_platform_set_error (NMPlatform *self, NMPlatformError error);
NMPlatformError nm_platform_get_error (NMPlatform *self);
const char *nm_platform_get_error_msg (NMPlatform *self);