Add function to retrieve string represenation for device type
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 1 Apr 2009 03:04:16 +0000 (20:04 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 1 Apr 2009 03:04:16 +0000 (20:04 -0700)
src/connman.h
src/device.c

index add13ae..ccfdcbd 100644 (file)
@@ -179,6 +179,8 @@ void __connman_device_disconnect(struct connman_device *device);
 
 connman_bool_t __connman_device_has_driver(struct connman_device *device);
 
+const char *__connman_device_get_type(struct connman_device *device);
+
 int __connman_device_set_offlinemode(connman_bool_t offlinemode);
 
 int __connman_profile_add_device(struct connman_device *device);
index e7c4b67..e8d46e9 100644 (file)
@@ -996,6 +996,11 @@ void connman_device_unref(struct connman_device *device)
        connman_element_unref(&device->element);
 }
 
+const char *__connman_device_get_type(struct connman_device *device)
+{
+       return type2string(device->type);
+}
+
 /**
  * connman_device_get_name:
  * @device: device structure