mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 16:50:17 +01:00
device,libnm,cli: add "new-activation" reason for device state change
It will be used when the device is disconnected for new connection activation.
(cherry picked from commit 1ad193a017)
This commit is contained in:
parent
5eec0818a1
commit
994136e142
4 changed files with 8 additions and 0 deletions
|
|
@ -705,6 +705,9 @@ nmc_device_reason_to_string (NMDeviceStateReason reason)
|
|||
case NM_DEVICE_STATE_REASON_SIM_PIN_INCORRECT:
|
||||
return _("SIM PIN was incorrect");
|
||||
|
||||
case NM_DEVICE_STATE_REASON_NEW_ACTIVATION:
|
||||
return _("New connection activation was enqueued");
|
||||
|
||||
default:
|
||||
/* TRANSLATORS: Unknown reason for a device state change (NMDeviceStateReason) */
|
||||
return _("Unknown");
|
||||
|
|
|
|||
|
|
@ -466,6 +466,7 @@ typedef enum {
|
|||
* @NM_DEVICE_STATE_REASON_MODEM_FAILED: Modem failed or no longer available
|
||||
* @NM_DEVICE_STATE_REASON_MODEM_AVAILABLE: Modem now ready and available
|
||||
* @NM_DEVICE_STATE_REASON_SIM_PIN_INCORRECT: SIM PIN was incorrect
|
||||
* @NM_DEVICE_STATE_REASON_NEW_ACTIVATION: New connection activation was enqueued
|
||||
*
|
||||
* Device state change reason codes
|
||||
*
|
||||
|
|
@ -532,6 +533,7 @@ typedef enum {
|
|||
NM_DEVICE_STATE_REASON_MODEM_FAILED = 57,
|
||||
NM_DEVICE_STATE_REASON_MODEM_AVAILABLE = 58,
|
||||
NM_DEVICE_STATE_REASON_SIM_PIN_INCORRECT = 59,
|
||||
NM_DEVICE_STATE_REASON_NEW_ACTIVATION = 60,
|
||||
} NMDeviceStateReason;
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -471,6 +471,7 @@ typedef enum {
|
|||
* @NM_DEVICE_STATE_REASON_MODEM_FAILED: Modem failed or no longer available
|
||||
* @NM_DEVICE_STATE_REASON_MODEM_AVAILABLE: Modem now ready and available
|
||||
* @NM_DEVICE_STATE_REASON_SIM_PIN_INCORRECT: SIM PIN was incorrect
|
||||
* @NM_DEVICE_STATE_REASON_NEW_ACTIVATION: New connection activation was enqueued
|
||||
*
|
||||
* Device state change reason codes
|
||||
*
|
||||
|
|
@ -537,6 +538,7 @@ typedef enum {
|
|||
NM_DEVICE_STATE_REASON_MODEM_FAILED = 57,
|
||||
NM_DEVICE_STATE_REASON_MODEM_AVAILABLE = 58,
|
||||
NM_DEVICE_STATE_REASON_SIM_PIN_INCORRECT = 59,
|
||||
NM_DEVICE_STATE_REASON_NEW_ACTIVATION = 60,
|
||||
|
||||
NM_DEVICE_STATE_REASON_LAST = 0xFFFF
|
||||
} NMDeviceStateReason;
|
||||
|
|
|
|||
|
|
@ -447,6 +447,7 @@ static const char *reason_table[] = {
|
|||
[NM_DEVICE_STATE_REASON_MODEM_FAILED] = "modem-failed",
|
||||
[NM_DEVICE_STATE_REASON_MODEM_AVAILABLE] = "modem-available",
|
||||
[NM_DEVICE_STATE_REASON_SIM_PIN_INCORRECT] = "sim-pin-incorrect",
|
||||
[NM_DEVICE_STATE_REASON_NEW_ACTIVATION] = "new-activation",
|
||||
};
|
||||
|
||||
static const char *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue