Get device interface through the get_string() routine
authorSamuel Ortiz <sameo@linux.intel.com>
Wed, 15 Sep 2010 13:33:43 +0000 (15:33 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 20 Sep 2010 13:14:16 +0000 (15:14 +0200)
src/device.c

index 53d9a66..6a9bce6 100644 (file)
@@ -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);
 }