summaryrefslogtreecommitdiffstats
path: root/libusbmuxd/libusbmuxd.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2009-09-23 13:24:45 +0200
committerGravatar Nikias Bassen2009-09-23 13:24:45 +0200
commite619fc9e4d90c9e86d1e05fe37ad6fbf284d6de8 (patch)
tree3fda3043b386cb6c9ac773eba61fad1eec833944 /libusbmuxd/libusbmuxd.c
parentb6e197667f5c94edca5f6617b897cf9b879e4a2a (diff)
downloadusbmuxd-e619fc9e4d90c9e86d1e05fe37ad6fbf284d6de8.tar.gz
usbmuxd-e619fc9e4d90c9e86d1e05fe37ad6fbf284d6de8.tar.bz2
Add usbmuxd_device_list_free function
Diffstat (limited to 'libusbmuxd/libusbmuxd.c')
-rw-r--r--libusbmuxd/libusbmuxd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libusbmuxd/libusbmuxd.c b/libusbmuxd/libusbmuxd.c
index a00ceb0..6970816 100644
--- a/libusbmuxd/libusbmuxd.c
+++ b/libusbmuxd/libusbmuxd.c
@@ -397,6 +397,14 @@ int usbmuxd_get_device_list(usbmuxd_device_info_t **device_list)
return dev_cnt;
}
+int usbmuxd_device_list_free(usbmuxd_device_info_t **device_list)
+{
+ if (device_list) {
+ free(*device_list);
+ }
+ return 0;
+}
+
int usbmuxd_get_device_by_uuid(const char *uuid, usbmuxd_device_info_t *device)
{
usbmuxd_device_info_t *dev_list = NULL;