From 7518772d4bcb5f6a2c5d4fcf33346e1036625755 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 30 Mar 2012 11:06:32 +0200 Subject: 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. --- include/ModemManager-enums.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/ModemManager-enums.h') 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, -- cgit v1.2.3-70-g09d2