Skip to contentSkip to conversation

Retrieve CPHS phase (if any) from SIM.

PATCH In review Andrzej Zaborowski 2 participants 2 messages Jan 7, 2010 – Jan 13, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 Retrieve CPHS phase (if any) from SIM.

---
 include/sim.h |    9 +++++++++
 src/sim.c     |   47 ++++++++++++++++++++++++++++++++++++++++++++++-
 src/simutil.h |    1 +
 3 files changed, 56 insertions(+), 1 deletions(-)
include/sim.h +9 -0
index bc846f3..7a61269 100644
@@ -63,6 +63,12 @@ enum ofono_sim_phase {
 	OFONO_SIM_PHASE_UNKNOWN,
 };
 
+enum ofono_sim_cphs_phase {
+	OFONO_SIM_CPHS_NONE,
+	OFONO_SIM_CPHS_PHASE1,
+	OFONO_SIM_CPHS_PHASE2,
+};
+
 typedef void (*ofono_sim_file_info_cb_t)(const struct ofono_error *error,
 					int filelength,
 					enum ofono_sim_file_structure structure,
@@ -162,6 +168,9 @@ void *ofono_sim_get_data(struct ofono_sim *sim);
 const char *ofono_sim_get_imsi(struct ofono_sim *sim);
 enum ofono_sim_phase ofono_sim_get_phase(struct ofono_sim *sim);
 
+enum ofono_sim_cphs_phase ofono_sim_get_cphs_phase(struct ofono_sim *sim);
+unsigned short ofono_sim_get_cphs_support(struct ofono_sim *sim);
+
 unsigned int ofono_sim_add_ready_watch(struct ofono_sim *sim,
 				ofono_sim_ready_notify_cb_t cb,
 				void *data, ofono_destroy_func destroy);
src/sim.c +46 -1

71 lines not on this page · raw message

src/simutil.h +1 -0
index f90c792..66e684a 100644
@@ -22,6 +22,7 @@
 enum sim_fileid {
 	SIM_EFPL_FILEID = 0x2f05,
 	SIM_EFLI_FILEID = 0x6f05,
+	SIM_EF_CPHS_INFORMATION_FILEID = 0x6f16,
 	SIM_EFMSISDN_FILEID = 0x6f40,
 	SIM_EFSPN_FILEID = 0x6f46,
 	SIM_EFSDN_FILEID = 0x6f49,
Signature · 1 line
1.6.1
#1 lore raw

Hi Andrew,

Quoted 5 lines
---
 include/sim.h |    9 +++++++++
 src/sim.c     |   47 ++++++++++++++++++++++++++++++++++++++++++++++-
 src/simutil.h |    1 +
 3 files changed, 56 insertions(+), 1 deletions(-)

Patch has been applied with some minor refactoring.

Regards,
-Denis