Add function to retrieve control interface
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 13 Jul 2009 03:23:29 +0000 (20:23 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 13 Jul 2009 03:23:29 +0000 (20:23 -0700)
include/device.h
src/device.c

index 2cd77f8..5da48bc 100644 (file)
@@ -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);
index acc4339..a7cf31e 100644 (file)
@@ -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