modem: Implement ofono_modem_get_sim

This commit is contained in:
Slava Monich 2017-09-29 12:49:08 +03:00 committed by Denis Kenzior
parent 6cd169b05b
commit 61bbbb0d7a
1 changed files with 5 additions and 0 deletions

View File

@ -184,6 +184,11 @@ const char *ofono_modem_get_path(struct ofono_modem *modem)
return NULL;
}
struct ofono_sim *ofono_modem_get_sim(struct ofono_modem *modem)
{
return __ofono_atom_find(OFONO_ATOM_TYPE_SIM, modem);
}
struct ofono_atom *__ofono_modem_add_atom(struct ofono_modem *modem,
enum ofono_atom_type type,
void (*destruct)(struct ofono_atom *),