diff options
author | Paul Kocialkowski <contact@paulk.fr> | 2013-09-28 16:38:51 +0200 |
---|---|---|
committer | Paul Kocialkowski <contact@paulk.fr> | 2013-09-28 16:38:51 +0200 |
commit | fd051580b347b09bf43d1fab29cea3d58b113e09 (patch) | |
tree | df76485577c71a1435be41a1b6115f2fe4795263 /samsung-ril.h | |
parent | 233ef2c6769c1c833e89651ae5846e66a5097cfb (diff) | |
download | hardware_replicant_libsamsung-ril-fd051580b347b09bf43d1fab29cea3d58b113e09.tar.gz hardware_replicant_libsamsung-ril-fd051580b347b09bf43d1fab29cea3d58b113e09.tar.bz2 hardware_replicant_libsamsung-ril-fd051580b347b09bf43d1fab29cea3d58b113e09.zip |
Check modem state before RIL requests and properly report it on crash
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'samsung-ril.h')
-rw-r--r-- | samsung-ril.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/samsung-ril.h b/samsung-ril.h index ff63d27..d9b4055 100644 --- a/samsung-ril.h +++ b/samsung-ril.h @@ -53,8 +53,6 @@ #define RIL_LOCK() pthread_mutex_lock(&ril_data.mutex) #define RIL_UNLOCK() pthread_mutex_unlock(&ril_data.mutex) -#define RIL_START_LOCK() pthread_mutex_lock(&ril_data.start_mutex) -#define RIL_START_UNLOCK() pthread_mutex_unlock(&ril_data.start_mutex) #define RIL_CLIENT_LOCK(client) pthread_mutex_lock(&(client->mutex)) #define RIL_CLIENT_UNLOCK(client) pthread_mutex_unlock(&(client->mutex)) @@ -125,6 +123,13 @@ void ril_request_unsolicited(int request, void *data, size_t length); void ril_request_timed_callback(RIL_TimedCallback callback, void *data, const struct timeval *time); /* + * RIL radio state + */ + +int ril_radio_state_complete(RIL_RadioState radio_state, RIL_Token token); +void ril_radio_state_update(RIL_RadioState radio_state); + +/* * RIL tokens */ @@ -165,7 +170,6 @@ typedef enum { struct ril_state { RIL_RadioState radio_state; ril_sim_state sim_state; - int power_state; struct ipc_sec_sim_status_response sim_pin_status; struct ipc_sec_sim_icc_type sim_icc_type; @@ -207,7 +211,6 @@ struct ril_data { struct ril_client *srs_client; pthread_mutex_t mutex; - pthread_mutex_t start_mutex; }; extern struct ril_data ril_data; |