sim: getters for mcc and mnc implementation
authorJukka Saunamaki <jukka.saunamaki@nokia.com>
Wed, 19 Jan 2011 07:21:28 +0000 (09:21 +0200)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 20 Jan 2011 17:04:00 +0000 (11:04 -0600)
src/sim.c

index e10e671..e78317a 100644 (file)
--- a/src/sim.c
+++ b/src/sim.c
@@ -1990,6 +1990,22 @@ const char *ofono_sim_get_imsi(struct ofono_sim *sim)
        return sim->imsi;
 }
 
+const char *ofono_sim_get_mcc(struct ofono_sim *sim)
+{
+       if (sim == NULL)
+               return NULL;
+
+       return sim->mcc;
+}
+
+const char *ofono_sim_get_mnc(struct ofono_sim *sim)
+{
+       if (sim == NULL)
+               return NULL;
+
+       return sim->mnc;
+}
+
 enum ofono_sim_phase ofono_sim_get_phase(struct ofono_sim *sim)
 {
        if (sim == NULL)