From b538adf12393f67d60f7f5ec74b2a3c1b968f35b Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 28 Apr 2015 07:55:30 +0200 Subject: [PATCH] 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. --- src/platform/nm-linux-platform.c | 2 +- src/platform/nm-platform.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 0fd0dd474..c51c5fe9b 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 fac0e6d50..abc1dad56 100644 --- a/src/platform/nm-platform.h +++ b/src/platform/nm-platform.h @@ -500,6 +500,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);