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.
This commit is contained in:
Aleksander Morgado
2012-03-30 11:06:32 +02:00
parent 3b366118b6
commit 7518772d4b
7 changed files with 223 additions and 229 deletions

View File

@@ -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,