mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-09 17:00:40 +01:00
device: make nm_device_state_reason_to_str() public
This commit is contained in:
parent
75e79b2976
commit
dcd7760eae
2 changed files with 3 additions and 2 deletions
|
|
@ -582,7 +582,7 @@ nm_device_state_to_str (NMDeviceState state)
|
|||
return queued_state_to_string (state) + NM_STRLEN (NM_PENDING_ACTIONPREFIX_QUEUED_STATE_CHANGE);
|
||||
}
|
||||
|
||||
NM_UTILS_LOOKUP_STR_DEFINE_STATIC (_reason_to_string, NMDeviceStateReason,
|
||||
NM_UTILS_LOOKUP_STR_DEFINE (nm_device_state_reason_to_str, NMDeviceStateReason,
|
||||
NM_UTILS_LOOKUP_DEFAULT (NULL),
|
||||
NM_UTILS_LOOKUP_STR_ITEM (NM_DEVICE_STATE_REASON_UNKNOWN, "unknown"),
|
||||
NM_UTILS_LOOKUP_STR_ITEM (NM_DEVICE_STATE_REASON_NONE, "none"),
|
||||
|
|
@ -652,7 +652,7 @@ NM_UTILS_LOOKUP_STR_DEFINE_STATIC (_reason_to_string, NMDeviceStateReason,
|
|||
);
|
||||
|
||||
#define reason_to_string(reason) \
|
||||
NM_UTILS_LOOKUP_STR (_reason_to_string, reason)
|
||||
NM_UTILS_LOOKUP_STR (nm_device_state_reason_to_str, reason)
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
|
|
|
|||
|
|
@ -794,5 +794,6 @@ struct _NMBtVTableNetworkServer {
|
|||
};
|
||||
|
||||
const char *nm_device_state_to_str (NMDeviceState state);
|
||||
const char *nm_device_state_reason_to_str (NMDeviceStateReason reason);
|
||||
|
||||
#endif /* __NETWORKMANAGER_DEVICE_H__ */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue