mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-03 16:20:14 +01:00
core: rename NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_UNBLOCKED enum
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NONE sounds better.
This commit is contained in:
parent
32efb87d4d
commit
937ee1de82
3 changed files with 7 additions and 7 deletions
|
|
@ -1425,7 +1425,7 @@ reset_autoconnect_all (NMPolicy *self, NMDevice *device)
|
|||
|
||||
if (!device || nm_device_check_connection_compatible (device, NM_CONNECTION (connection))) {
|
||||
nm_settings_connection_reset_autoconnect_retries (connection);
|
||||
nm_settings_connection_set_autoconnect_blocked_reason (connection, NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_UNBLOCKED);
|
||||
nm_settings_connection_set_autoconnect_blocked_reason (connection, NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1445,7 +1445,7 @@ reset_autoconnect_for_failed_secrets (NMPolicy *self)
|
|||
|
||||
if (nm_settings_connection_get_autoconnect_blocked_reason (connection) == NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NO_SECRETS) {
|
||||
nm_settings_connection_reset_autoconnect_retries (connection);
|
||||
nm_settings_connection_set_autoconnect_blocked_reason (connection, NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_UNBLOCKED);
|
||||
nm_settings_connection_set_autoconnect_blocked_reason (connection, NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1635,7 +1635,7 @@ activate_slave_connections (NMPolicy *self, NMDevice *device)
|
|||
|
||||
reason = nm_settings_connection_get_autoconnect_blocked_reason (settings);
|
||||
if (reason == NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_FAILED) {
|
||||
reason = NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_UNBLOCKED;
|
||||
reason = NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NONE;
|
||||
nm_settings_connection_set_autoconnect_blocked_reason (settings, reason);
|
||||
}
|
||||
}
|
||||
|
|
@ -1851,7 +1851,7 @@ device_state_changed (NMDevice *device,
|
|||
case NM_DEVICE_STATE_IP_CONFIG:
|
||||
/* We must have secrets if we got here. */
|
||||
if (connection)
|
||||
nm_settings_connection_set_autoconnect_blocked_reason (connection, NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_UNBLOCKED);
|
||||
nm_settings_connection_set_autoconnect_blocked_reason (connection, NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NONE);
|
||||
break;
|
||||
case NM_DEVICE_STATE_SECONDARIES:
|
||||
if (connection)
|
||||
|
|
|
|||
|
|
@ -2620,7 +2620,7 @@ nm_settings_connection_set_autoconnect_blocked_reason (NMSettingsConnection *sel
|
|||
NMSettingsAutoconnectBlockedReason reason)
|
||||
{
|
||||
g_return_if_fail (NM_IN_SET (reason,
|
||||
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_UNBLOCKED,
|
||||
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NONE,
|
||||
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_USER_REQUEST,
|
||||
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_FAILED,
|
||||
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NO_SECRETS));
|
||||
|
|
@ -2636,7 +2636,7 @@ nm_settings_connection_can_autoconnect (NMSettingsConnection *self)
|
|||
|
||||
if ( !priv->visible
|
||||
|| priv->autoconnect_retries == 0
|
||||
|| priv->autoconnect_blocked_reason != NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_UNBLOCKED)
|
||||
|| priv->autoconnect_blocked_reason != NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NONE)
|
||||
return FALSE;
|
||||
|
||||
s_con = nm_connection_get_setting_connection (NM_CONNECTION (self));
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ typedef enum { /*< skip >*/
|
|||
} NMSettingsConnectionCommitReason;
|
||||
|
||||
typedef enum {
|
||||
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_UNBLOCKED = 0,
|
||||
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NONE = 0,
|
||||
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_USER_REQUEST = 1,
|
||||
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_FAILED = 2,
|
||||
NM_SETTINGS_AUTO_CONNECT_BLOCKED_REASON_NO_SECRETS = 3,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue