From: Marcel Holtmann Date: Mon, 13 Jul 2009 03:23:29 +0000 (-0700) Subject: Add function to retrieve control interface X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~3556 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebb64cbdcc6876046bc81a6a60e1a2ce5afe57ef;p=profile%2Fivi%2Fconnman.git Add function to retrieve control interface --- 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