summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2017-10-31 10:40:43 -0500
committerDenis Kenzior <denkenz@gmail.com>2017-11-08 21:02:22 -0600
commitc5d83c01a8cf6658f6ef7caebf8240fd0dd69d64 (patch)
treef8438125c831b6162b4d50d77d6606b92ee6a453 /include
parentecc6332e2867d1286a4fe32a4cfc65a63c7da157 (diff)
downloadofono-c5d83c01a8cf6658f6ef7caebf8240fd0dd69d64.tar.gz
include: Introduce ofono_sim_initialized_notify
Diffstat (limited to 'include')
-rw-r--r--include/sim.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/sim.h b/include/sim.h
index d37e4f16..fad4c0d6 100644
--- a/include/sim.h
+++ b/include/sim.h
@@ -247,8 +247,21 @@ ofono_bool_t ofono_sim_add_spn_watch(struct ofono_sim *sim, unsigned int *id,
ofono_bool_t ofono_sim_remove_spn_watch(struct ofono_sim *sim, unsigned int *id);
+/*
+ * It is assumed that when ofono_sim_inserted_notify is called, the SIM is
+ * ready to be queried for files that are always available even if SIM
+ * PIN has not been entered. This is EFiccid and a few others
+ */
void ofono_sim_inserted_notify(struct ofono_sim *sim, ofono_bool_t inserted);
+/*
+ * When the SIM PIN has been entered, many devices require some time to
+ * initialize the SIM and calls to CPIN? will return a SIM BUSY error. Or
+ * sometimes report ready but fail in any subsequent SIM requests. This is
+ * used to notify oFono core when the SIM / firmware is truly ready
+ */
+void ofono_sim_initialized_notify(struct ofono_sim *sim);
+
struct ofono_sim_context *ofono_sim_context_create(struct ofono_sim *sim);
struct ofono_sim_context *ofono_sim_context_create_isim(