Add ofono_gprs_context_get_modem

This commit is contained in:
Martin Xu 2009-11-17 15:56:31 -06:00 committed by Denis Kenzior
parent 6afea47158
commit 26413141be
2 changed files with 7 additions and 0 deletions

View File

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

View File

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