summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(