diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2012-05-25 11:17:38 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-05-25 14:48:22 +0300 |
commit | fc6cfb5cfd7641a848ac1a082b41737fd81512e5 (patch) | |
tree | 7830dd00620190f61dd5b2a55a904f5fa1cfb861 /src | |
parent | 9c144117e0cd50aea8de2a1164136e205fd73541 (diff) | |
download | connman-fc6cfb5cfd7641a848ac1a082b41737fd81512e5.tar.gz connman-fc6cfb5cfd7641a848ac1a082b41737fd81512e5.tar.bz2 connman-fc6cfb5cfd7641a848ac1a082b41737fd81512e5.zip |
device: Make scanning getter method public.
Diffstat (limited to 'src')
-rw-r--r-- | src/connman.h | 2 | ||||
-rw-r--r-- | src/device.c | 2 | ||||
-rw-r--r-- | src/service.c | 2 | ||||
-rw-r--r-- | src/technology.c | 4 |
4 files changed, 4 insertions, 6 deletions
diff --git a/src/connman.h b/src/connman.h index b501296e..5ac97f96 100644 --- a/src/connman.h +++ b/src/connman.h @@ -487,8 +487,6 @@ int __connman_device_enable(struct connman_device *device); int __connman_device_disable(struct connman_device *device); int __connman_device_disconnect(struct connman_device *device); -connman_bool_t __connman_device_scanning(struct connman_device *device); - connman_bool_t __connman_device_has_driver(struct connman_device *device); void __connman_device_set_reconnect(struct connman_device *device, diff --git a/src/device.c b/src/device.c index c20b82ce..e4339915 100644 --- a/src/device.c +++ b/src/device.c @@ -703,7 +703,7 @@ void __connman_device_cleanup_networks(struct connman_device *device) remove_unavailable_network, NULL); } -connman_bool_t __connman_device_scanning(struct connman_device *device) +connman_bool_t connman_device_get_scanning(struct connman_device *device) { return device->scanning; } diff --git a/src/service.c b/src/service.c index 9220ad9f..384d13d9 100644 --- a/src/service.c +++ b/src/service.c @@ -5936,7 +5936,7 @@ struct connman_service * __connman_service_create_from_network(struct connman_ne if (service->favorite == TRUE) { device = connman_network_get_device(service->network); - if (device && __connman_device_scanning(device) == FALSE) + if (device && connman_device_get_scanning(device) == FALSE) __connman_service_auto_connect(); } diff --git a/src/technology.c b/src/technology.c index 42446b0b..2edb48f2 100644 --- a/src/technology.c +++ b/src/technology.c @@ -831,7 +831,7 @@ void __connman_technology_scan_stopped(struct connman_device *device) if (__connman_device_get_service_type(other_device) != type) continue; - if (__connman_device_scanning(other_device)) + if (connman_device_get_scanning(other_device) == TRUE) count += 1; } @@ -1101,7 +1101,7 @@ int __connman_technology_remove_device(struct connman_device *device) return -ENXIO; } - if (__connman_device_scanning(device)) + if (connman_device_get_scanning(device) == TRUE) __connman_technology_scan_stopped(device); technology->device_list = g_slist_remove(technology->device_list, |