diff options
author | Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> | 2012-10-15 15:35:20 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2012-10-16 15:05:40 +0300 |
commit | 287c19dc6093d7b55f52741e1af90a742249a534 (patch) | |
tree | 16cd12fd2481a3427d83b17a00d41b1c4e98e3ea /src/device.c | |
parent | 402f621c827bce947fe1ae89529fa3860e904f62 (diff) | |
download | connman-287c19dc6093d7b55f52741e1af90a742249a534.tar.gz connman-287c19dc6093d7b55f52741e1af90a742249a534.tar.bz2 connman-287c19dc6093d7b55f52741e1af90a742249a534.zip |
device: Add a getter for powered property
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 12bc7da3..9f88dfa9 100644 --- a/src/device.c +++ b/src/device.c @@ -595,6 +595,11 @@ int connman_device_set_powered(struct connman_device *device, return 0; } +connman_bool_t connman_device_get_powered(struct connman_device *device) +{ + return device->powered; +} + static int device_scan(struct connman_device *device) { if (!device->driver || !device->driver->scan) |