From: Marcel Holtmann Date: Mon, 5 Jan 2009 01:44:00 +0000 (+0100) Subject: Add function to get device name X-Git-Tag: accepted/2.0alpha-wayland/20121110.002834~4152 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42ec7c7c913713e48ff9c3c641db662e3522d3a8;p=profile%2Fivi%2Fconnman.git Add function to get device name --- diff --git a/include/device.h b/include/device.h index 8af7d28..350890f 100644 --- a/include/device.h +++ b/include/device.h @@ -70,6 +70,7 @@ extern struct connman_device *connman_device_create(const char *node, extern struct connman_device *connman_device_ref(struct connman_device *device); extern void connman_device_unref(struct connman_device *device); +extern const char *connman_device_get_name(struct connman_device *device); extern const char *connman_device_get_path(struct connman_device *device); extern void connman_device_set_index(struct connman_device *device, int index); diff --git a/src/device.c b/src/device.c index eb52ff6..9866918 100644 --- a/src/device.c +++ b/src/device.c @@ -749,6 +749,17 @@ void connman_device_unref(struct connman_device *device) } /** + * connman_device_get_name: + * @device: device structure + * + * Get unique name of device + */ +const char *connman_device_get_name(struct connman_device *device) +{ + return device->element.name; +} + +/** * connman_device_get_path: * @device: device structure *