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.
This commit is contained in:

committed by
Dan Williams

parent
268da271cc
commit
b538adf123
@@ -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;
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user