From: Tomasz Bursztyka Date: Wed, 4 Jul 2012 13:48:02 +0000 (+0300) Subject: device: Add capability to notify on regulatory domain setting X-Git-Tag: 1.4~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00efd6e25a0b25fb3fb8cf994191329468cc3eef;p=platform%2Fupstream%2Fconnman.git device: Add capability to notify on regulatory domain setting --- diff --git a/include/device.h b/include/device.h index f4e802e..d066296 100644 --- a/include/device.h +++ b/include/device.h @@ -110,6 +110,8 @@ void connman_device_set_data(struct connman_device *device, void *data); int connman_device_set_regdom(struct connman_device *device, const char *alpha2); +void connman_device_regdom_notify(struct connman_device *device, + int result, const char *alpha2); struct connman_device_driver { const char *name; diff --git a/src/device.c b/src/device.c index 43ebb6c..ec732b8 100644 --- a/src/device.c +++ b/src/device.c @@ -1061,6 +1061,19 @@ int connman_device_set_regdom(struct connman_device *device, return device->driver->set_regdom(device, alpha2); } +/** + * connman_device_regdom_notify + * @device: device structure + * @alpha2: string representing regulatory domain + * + * Notify on setting regulatory domain on device basis + */ +void connman_device_regdom_notify(struct connman_device *device, + int result, const char *alpha2) +{ + __connman_technology_notify_regdom_by_device(device, result, alpha2); +} + int __connman_device_request_scan(enum connman_service_type type) { connman_bool_t success = FALSE;