summaryrefslogtreecommitdiff
path: root/src/up-device-list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/up-device-list.c')
-rw-r--r--src/up-device-list.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/up-device-list.c b/src/up-device-list.c
index da5555b..6b28dc4 100644
--- a/src/up-device-list.c
+++ b/src/up-device-list.c
@@ -144,6 +144,21 @@ up_device_list_get_array (UpDeviceList *list)
}
/**
+ * up_device_list_get_get_keys:
+ *
+ * Get a list of registered native paths to a device, useful if you want to
+ * free all devices.
+ *
+ * Return value: a list of keys, free with g_list_free().
+ **/
+GList *
+up_device_list_get_keys (UpDeviceList *list)
+{
+ g_return_val_if_fail (UP_IS_DEVICE_LIST (list), NULL);
+ return g_hash_table_get_keys (list->priv->map_native_path_to_device);
+}
+
+/**
* up_device_list_class_init:
* @klass: The UpDeviceListClass
**/