mirror of git://git.sysmocom.de/ofono
Add ofono_gprs_context_get_modem
This commit is contained in:
parent
6afea47158
commit
26413141be
|
@ -71,6 +71,8 @@ void ofono_gprs_context_remove(struct ofono_gprs_context *gc);
|
|||
void ofono_gprs_context_set_data(struct ofono_gprs_context *gc, void *data);
|
||||
void *ofono_gprs_context_get_data(struct ofono_gprs_context *gc);
|
||||
|
||||
struct ofono_modem *ofono_gprs_context_get_modem(struct ofono_gprs_context *gc);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1237,6 +1237,11 @@ void *ofono_gprs_context_get_data(struct ofono_gprs_context *gc)
|
|||
return gc->driver_data;
|
||||
}
|
||||
|
||||
struct ofono_modem *ofono_gprs_context_get_modem(struct ofono_gprs_context *gc)
|
||||
{
|
||||
return __ofono_atom_get_modem(gc->atom);
|
||||
}
|
||||
|
||||
int ofono_gprs_driver_register(const struct ofono_gprs_driver *d)
|
||||
{
|
||||
DBG("driver: %p, name: %s", d, d->name);
|
||||
|
|
Loading…
Reference in New Issue