From d27e40ae9aea1166831920a92d4eba4f3f51605d Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 9 Mar 2012 19:48:43 +0100 Subject: core: new `Initializing' state in the global modem state machine We need to define a state to be used while the modem is being initialized, so that we forbid any operation on the modem on already exported interfaces, while there are interfaces pending to get exported. This Initializing state will also cover the state between having the SIM unlocked (which launches re-initialization) and being completely initialized. --- include/ModemManager-enums.h | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) (limited to 'include/ModemManager-enums.h') diff --git a/include/ModemManager-enums.h b/include/ModemManager-enums.h index e59d50ae..73fb2b9e 100644 --- a/include/ModemManager-enums.h +++ b/include/ModemManager-enums.h @@ -93,6 +93,7 @@ typedef enum { /*< underscore_name=mm_modem_lock >*/ /** * MMModemState: * @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. * @MM_MODEM_STATE_DISABLED: The modem is not enabled and is powered down. * @MM_MODEM_STATE_DISABLING: The modem is currently transitioning to the @MM_MODEM_STATE_DISABLED state. @@ -108,16 +109,17 @@ typedef enum { /*< underscore_name=mm_modem_lock >*/ */ typedef enum { /*< underscore_name=mm_modem_state >*/ MM_MODEM_STATE_UNKNOWN = 0, - MM_MODEM_STATE_LOCKED = 1, - MM_MODEM_STATE_DISABLED = 2, - MM_MODEM_STATE_DISABLING = 3, - MM_MODEM_STATE_ENABLING = 4, - MM_MODEM_STATE_ENABLED = 5, - MM_MODEM_STATE_SEARCHING = 6, - MM_MODEM_STATE_REGISTERED = 7, - MM_MODEM_STATE_DISCONNECTING = 8, - MM_MODEM_STATE_CONNECTING = 9, - MM_MODEM_STATE_CONNECTED = 10 + MM_MODEM_STATE_INITIALIZING = 1, + MM_MODEM_STATE_LOCKED = 2, + MM_MODEM_STATE_DISABLED = 3, + MM_MODEM_STATE_DISABLING = 4, + MM_MODEM_STATE_ENABLING = 5, + MM_MODEM_STATE_ENABLED = 6, + MM_MODEM_STATE_SEARCHING = 7, + MM_MODEM_STATE_REGISTERED = 8, + MM_MODEM_STATE_DISCONNECTING = 9, + MM_MODEM_STATE_CONNECTING = 10, + MM_MODEM_STATE_CONNECTED = 11 } MMModemState; /** -- cgit v1.2.3-70-g09d2