diff options
Diffstat (limited to 'samsung-ril.h')
-rw-r--r-- | samsung-ril.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/samsung-ril.h b/samsung-ril.h index 0f936e3..3d4d9fc 100644 --- a/samsung-ril.h +++ b/samsung-ril.h @@ -199,12 +199,23 @@ size_t ril_request_data_size_get(int request); void *ril_request_data_get(int request); /* - * RIL radio state + * RIL state */ +enum sim_state { + SIM_STATE_ERROR, + SIM_STATE_NOT_READY, + SIM_STATE_LOCKED_OR_ABSENT, + SIM_STATE_READY, + SIM_STATE_MAX, +}; + int ril_radio_state_update(RIL_RadioState radio_state); int ril_radio_has_reached_state(RIL_RadioState radio_state); +int ril_sim_state_update(enum sim_state sim_state); +int ril_sim_has_reached_state(enum sim_state sim_state); + /* * RIL data */ @@ -213,6 +224,7 @@ struct ril_data { const struct RIL_Env *env; RIL_RadioState radio_state; + enum sim_state sim_state; char *sim_pin; struct list_head *requests; |