summaryrefslogtreecommitdiff
path: root/src/device.c
diff options
context:
space:
mode:
authorSamuel Ortiz <sameo@linux.intel.com>2010-09-15 15:33:43 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2010-09-20 15:14:16 +0200
commit3053d4aba0db458ad7adf48041c79734700c5ee0 (patch)
treefb5ecffb8d4f0c7364d0751e92852f870eb2ffd6 /src/device.c
parentd6b6fb3003a42e857fbd969e0ccfc771f4fc8398 (diff)
downloadconnman-3053d4aba0db458ad7adf48041c79734700c5ee0.tar.gz
connman-3053d4aba0db458ad7adf48041c79734700c5ee0.tar.bz2
connman-3053d4aba0db458ad7adf48041c79734700c5ee0.zip
Get device interface through the get_string() routine
Diffstat (limited to 'src/device.c')
-rw-r--r--src/device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device.c b/src/device.c
index 53d9a662..6a9bce6a 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1324,6 +1324,8 @@ const char *connman_device_get_string(struct connman_device *device,
return device->name;
else if (g_str_equal(key, "Node") == TRUE)
return device->node;
+ else if (g_str_equal(key, "Interface") == TRUE)
+ return device->interface;
return connman_element_get_string(&device->element, key);
}