diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-07-12 20:23:29 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-07-12 20:23:29 -0700 |
commit | ebb64cbdcc6876046bc81a6a60e1a2ce5afe57ef (patch) | |
tree | 94ceeee930df293206b96782cd656b1aae7b7720 | |
parent | 583609994ef49ed11713255194f0289e85e87b9f (diff) | |
download | connman-ebb64cbdcc6876046bc81a6a60e1a2ce5afe57ef.tar.gz connman-ebb64cbdcc6876046bc81a6a60e1a2ce5afe57ef.tar.bz2 connman-ebb64cbdcc6876046bc81a6a60e1a2ce5afe57ef.zip |
Add function to retrieve control interface
-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 |