diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-09 19:48:43 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-03-16 14:53:24 +0100 |
commit | d27e40ae9aea1166831920a92d4eba4f3f51605d (patch) | |
tree | 8afa0f609852eb5a501bdd98e56c7f012e34a007 /include/ModemManager-enums.h | |
parent | 6de2e3f72cb058ce31b93274ede144d95c5440bc (diff) |
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.
Diffstat (limited to 'include/ModemManager-enums.h')
-rw-r--r-- | include/ModemManager-enums.h | 22 |
1 files changed, 12 insertions, 10 deletions
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; /** |