From c5d83c01a8cf6658f6ef7caebf8240fd0dd69d64 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 31 Oct 2017 10:40:43 -0500 Subject: [PATCH] include: Introduce ofono_sim_initialized_notify --- include/sim.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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(