diff options
-rw-r--r-- | include/gprs.h | 2 | ||||
-rw-r--r-- | src/gprs.c | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/include/gprs.h b/include/gprs.h index 2d40ef82..200d47ba 100644 --- a/include/gprs.h +++ b/include/gprs.h @@ -64,6 +64,8 @@ void ofono_gprs_remove(struct ofono_gprs *gprs); void ofono_gprs_set_data(struct ofono_gprs *gprs, void *data); void *ofono_gprs_get_data(struct ofono_gprs *gprs); +void ofono_gprs_set_cid_range(struct ofono_gprs *gprs, int min, int max); + #ifdef __cplusplus } #endif @@ -58,6 +58,8 @@ struct ofono_gprs { int technology; int flags; int next_context_id; + int cid_min; + int cid_max; DBusMessage *pending; const struct ofono_gprs_driver *driver; void *driver_data; @@ -966,8 +968,16 @@ void ofono_gprs_status_notify(struct ofono_gprs *gprs, set_registration_technology(gprs, tech); } -int ofono_gprs_driver_register( - const struct ofono_gprs_driver *d) +void ofono_gprs_set_cid_range(struct ofono_gprs *gprs, int min, int max) +{ + if (gprs == NULL) + return; + + gprs->cid_min = min; + gprs->cid_max = max; +} + +int ofono_gprs_driver_register(const struct ofono_gprs_driver *d) { DBG("driver: %p, name: %s", d, d->name); |