diff options
-rw-r--r-- | include/device.h | 1 | ||||
-rw-r--r-- | src/device.c | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/device.h b/include/device.h index 2cd77f88..5da48bc8 100644 --- a/include/device.h +++ b/include/device.h @@ -71,6 +71,7 @@ void connman_device_set_index(struct connman_device *device, int index); int connman_device_get_index(struct connman_device *device); void connman_device_set_interface(struct connman_device *device, const char *interface, const char *control); +const char *connman_device_get_control(struct connman_device *device); void connman_device_set_ident(struct connman_device *device, const char *ident); diff --git a/src/device.c b/src/device.c index acc43391..a7cf31ec 100644 --- a/src/device.c +++ b/src/device.c @@ -1213,6 +1213,11 @@ void connman_device_set_interface(struct connman_device *device, } } +const char *connman_device_get_control(struct connman_device *device) +{ + return device->control; +} + /** * connman_device_set_ident: * @device: device structure |