diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2010-08-09 23:07:38 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2010-08-09 23:09:02 +0200 |
commit | 5a44160d91e5214c0506cae8c79e13d994031200 (patch) | |
tree | 98c635919a07fa7cb7a3e790f05f97174cee471f /src/device.c | |
parent | ae3b3b3ea9df42424964cb18df943747367271eb (diff) | |
download | connman-5a44160d91e5214c0506cae8c79e13d994031200.tar.gz connman-5a44160d91e5214c0506cae8c79e13d994031200.tar.bz2 connman-5a44160d91e5214c0506cae8c79e13d994031200.zip |
Add BLOCKED technology state
A technology is in BLOCKED state if all of its devices are rfkill blocked.
Diffstat (limited to 'src/device.c')
-rw-r--r-- | src/device.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c index 813e3bcd..7633cee9 100644 --- a/src/device.c +++ b/src/device.c @@ -1062,6 +1062,11 @@ int __connman_device_set_blocked(struct connman_device *device, return set_powered(device, powered); } +connman_bool_t __connman_device_get_blocked(struct connman_device *device) +{ + return device->blocked; +} + int __connman_device_scan(struct connman_device *device) { if (!device->driver || !device->driver->scan) |