sim: getters for mcc and mnc implementation

This commit is contained in:
Jukka Saunamaki 2011-01-19 09:21:28 +02:00 committed by Denis Kenzior
parent a182554f0a
commit 0ef557e766
1 changed files with 16 additions and 0 deletions

View File

@ -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)