diff options
author | Dan Williams <dcbw@redhat.com> | 2008-07-11 10:28:53 +0000 |
---|---|---|
committer | Tambet Ingo <tambet@gmail.com> | 2008-07-11 10:28:53 +0000 |
commit | 95bb76aa7f74075e1d0424b3c7441f366225b4c6 (patch) | |
tree | 49421fc21be919191d4f2a2e3a765f02289dde19 /include | |
parent | 9228a199fd4d63c99048df061e15f7e4e628e24a (diff) | |
download | NetworkManager-95bb76aa7f74075e1d0424b3c7441f366225b4c6.tar.gz |
2008-07-11 Dan Williams <dcbw@redhat.com>
Modify the NMDevice::state-changed signal to include the previous state
and reason. Enables the applet to provide more information why device
activation failed.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3819 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
Diffstat (limited to 'include')
-rw-r--r-- | include/NetworkManager.h | 103 |
1 files changed, 102 insertions, 1 deletions
diff --git a/include/NetworkManager.h b/include/NetworkManager.h index 379c190023..b95a3822ee 100644 --- a/include/NetworkManager.h +++ b/include/NetworkManager.h @@ -212,6 +212,108 @@ typedef enum } NMDeviceState; +/* + * Device state change reason codes + */ +typedef enum { + /* No reason given */ + NM_DEVICE_STATE_REASON_NONE = 0, + + /* Unknown error */ + NM_DEVICE_STATE_REASON_UNKNOWN, + + /* Device is now managed */ + NM_DEVICE_STATE_REASON_NOW_MANAGED, + + /* Device is now managed unmanaged */ + NM_DEVICE_STATE_REASON_NOW_UNMANAGED, + + /* The device could not be readied for configuration */ + NM_DEVICE_STATE_REASON_CONFIG_FAILED, + + /* IP configuration could not be reserved (no available address, timeout, etc) */ + NM_DEVICE_STATE_REASON_IP_CONFIG_UNAVAILABLE, + + /* The IP config is no longer valid */ + NM_DEVICE_STATE_REASON_IP_CONFIG_EXPIRED, + + /* Secrets were required, but not provided */ + NM_DEVICE_STATE_REASON_NO_SECRETS, + + /* 802.1x supplicant disconnected */ + NM_DEVICE_STATE_REASON_SUPPLICANT_DISCONNECT, + + /* 802.1x supplicant configuration failed */ + NM_DEVICE_STATE_REASON_SUPPLICANT_CONFIG_FAILED, + + /* 802.1x supplicant failed */ + NM_DEVICE_STATE_REASON_SUPPLICANT_FAILED, + + /* 802.1x supplicant took too long to authenticate */ + NM_DEVICE_STATE_REASON_SUPPLICANT_TIMEOUT, + + /* PPP service failed to start */ + NM_DEVICE_STATE_REASON_PPP_START_FAILED, + + /* PPP service disconnected */ + NM_DEVICE_STATE_REASON_PPP_DISCONNECT, + + /* PPP failed */ + NM_DEVICE_STATE_REASON_PPP_FAILED, + + /* DHCP client failed to start */ + NM_DEVICE_STATE_REASON_DHCP_START_FAILED, + + /* DHCP client error */ + NM_DEVICE_STATE_REASON_DHCP_ERROR, + + /* DHCP client failed */ + NM_DEVICE_STATE_REASON_DHCP_FAILED, + + /* Shared connection service failed to start */ + NM_DEVICE_STATE_REASON_SHARED_START_FAILED, + + /* AutoIP service failed to start */ + NM_DEVICE_STATE_REASON_AUTOIP_START_FAILED, + + /* AutoIP service error */ + NM_DEVICE_STATE_REASON_AUTOIP_ERROR, + + /* AutoIP service failed */ + NM_DEVICE_STATE_REASON_AUTOIP_FAILED, + + /* The line is busy */ + NM_DEVICE_STATE_REASON_MODEM_BUSY, + + /* No dial tone */ + NM_DEVICE_STATE_REASON_MODEM_NO_DIAL_TONE, + + /* No carrier could be established */ + NM_DEVICE_STATE_REASON_MODEM_NO_CARRIER, + + /* The dialing request timed out */ + NM_DEVICE_STATE_REASON_MODEM_DIAL_TIMEOUT, + + /* The dialing attempt failed */ + NM_DEVICE_STATE_REASON_MODEM_DIAL_FAILED, + + /* Modem initialization failed */ + NM_DEVICE_STATE_REASON_MODEM_INIT_FAILED, + + /* Failed to select the specified APN */ + NM_DEVICE_STATE_REASON_GSM_APN_FAILED, + + /* Failed to register with the requested network */ + NM_DEVICE_STATE_REASON_GSM_REGISTRATION_FAILED, + + /* PIN check failed */ + NM_DEVICE_STATE_REASON_GSM_PIN_CHECK_FAILED, + + /* Unused */ + NM_DEVICE_STATE_REASON_LAST = 0xFFFF +} NMDeviceStateReason; + + typedef enum { NM_ACTIVE_CONNECTION_STATE_UNKNOWN = 0, @@ -222,6 +324,5 @@ typedef enum { NM_ACTIVE_CONNECTION_STATE_ACTIVATED } NMActiveConnectionState; - #endif /* NETWORK_MANAGER_H */ |