modem: Implement ofono_modem_get_gprs

This commit is contained in:
Slava Monich 2018-04-26 17:00:32 +03:00 committed by Denis Kenzior
parent fa670ad295
commit 3cb55b65cb
1 changed files with 5 additions and 0 deletions

View File

@ -189,6 +189,11 @@ struct ofono_sim *ofono_modem_get_sim(struct ofono_modem *modem)
return __ofono_atom_find(OFONO_ATOM_TYPE_SIM, modem);
}
struct ofono_gprs *ofono_modem_get_gprs(struct ofono_modem *modem)
{
return __ofono_atom_find(OFONO_ATOM_TYPE_GPRS, modem);
}
struct ofono_atom *__ofono_modem_add_atom(struct ofono_modem *modem,
enum ofono_atom_type type,
void (*destruct)(struct ofono_atom *),