diff options
author | Denis Kenzior <denis.kenzior@intel.com> | 2009-10-22 17:39:57 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-10-23 17:05:54 -0500 |
commit | 65f77b2b3aafcac04176f27ae89e71443d4a98c6 (patch) | |
tree | 7a670c73991b2d6fad94e11dd9aa6865aec09c78 | |
parent | b745ebcf6fcc83d11538aba0468e25878f283661 (diff) | |
download | ofono-65f77b2b3aafcac04176f27ae89e71443d4a98c6.tar.bz2 |
Add CID range function
-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); |