mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 11:40:08 +01:00
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 b538adf123)
This commit is contained in:
parent
bae47558ba
commit
3d1ab669e3
2 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue