diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-30 11:06:32 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-30 13:47:00 +0200 |
commit | 7518772d4bcb5f6a2c5d4fcf33346e1036625755 (patch) | |
tree | de9de16e3eae87797bbe8c44c0b8fecbe6ddd276 /include/ModemManager-enums.h | |
parent | 3b366118b66bb27642a72adb49ceafaab5b6da5d (diff) |
core: fatal errors in iface initializations force the modem into a FAILED state
Modems which end up being found unusable (e.g. no SIM, fatal SIM error, no
capabilities) will be exposed in DBus, but just with the Modem interface and
in a FAILED state which allows no actions.
Diffstat (limited to 'include/ModemManager-enums.h')
-rw-r--r-- | include/ModemManager-enums.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h index 73fb2b9e..a8942ee2 100644 --- a/include/ModemManager-enums.h +++ b/include/ModemManager-enums.h @@ -92,6 +92,7 @@ typedef enum { /*< underscore_name=mm_modem_lock >*/ /** * MMModemState: + * @MM_MODEM_STATE_FAILED: The modem is unusable. * @MM_MODEM_STATE_UNKNOWN: State unknown or not reportable. * @MM_MODEM_STATE_INITIALIZING: The modem is currently being initialized. * @MM_MODEM_STATE_LOCKED: The modem needs to be unlocked. @@ -108,6 +109,7 @@ typedef enum { /*< underscore_name=mm_modem_lock >*/ * Enumeration of possible modem states. */ typedef enum { /*< underscore_name=mm_modem_state >*/ + MM_MODEM_STATE_FAILED = -1, MM_MODEM_STATE_UNKNOWN = 0, MM_MODEM_STATE_INITIALIZING = 1, MM_MODEM_STATE_LOCKED = 2, |