From ebb64cbdcc6876046bc81a6a60e1a2ce5afe57ef Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 12 Jul 2009 20:23:29 -0700 Subject: [PATCH] Add function to retrieve control interface --- include/device.h | 1 + src/device.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/device.h b/include/device.h index 2cd77f8..5da48bc 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 acc4339..a7cf31e 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 -- 2.7.4