diff options
Diffstat (limited to 'libusbmuxd/usbmuxd.h')
| -rw-r--r-- | libusbmuxd/usbmuxd.h | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/libusbmuxd/usbmuxd.h b/libusbmuxd/usbmuxd.h index a4e7e4a..106f921 100644 --- a/libusbmuxd/usbmuxd.h +++ b/libusbmuxd/usbmuxd.h | |||
| @@ -57,12 +57,28 @@ int usbmuxd_unsubscribe(); | |||
| 57 | /** | 57 | /** |
| 58 | * Contacts usbmuxd and retrieves a list of connected devices. | 58 | * Contacts usbmuxd and retrieves a list of connected devices. |
| 59 | * | 59 | * |
| 60 | * @param available_devices pointer to an array of usbmuxd_device_info_t | 60 | * @param device_list A pointer to an array of usbmuxd_device_info_t |
| 61 | * that will hold records of the connected devices. | 61 | * that will hold records of the connected devices. The last record |
| 62 | * is a null-terminated record with all fields set to 0/NULL. | ||
| 63 | * @note The user has to free the list returned. | ||
| 62 | * | 64 | * |
| 63 | * @return number of available devices, zero on no devices, or negative on error | 65 | * @return number of attached devices, zero on no devices, or negative |
| 66 | * if an error occured. | ||
| 64 | */ | 67 | */ |
| 65 | int usbmuxd_scan(usbmuxd_device_info_t **available_devices); | 68 | int usbmuxd_get_device_list(usbmuxd_device_info_t **device_list); |
| 69 | |||
| 70 | /** | ||
| 71 | * Gets device information for the device specified by uuid. | ||
| 72 | * | ||
| 73 | * @param uuid A device uuid of the device to look for. If uuid is NULL, | ||
| 74 | * This function will return the first device found. | ||
| 75 | * @param device Pointer to a previously allocated (or static) | ||
| 76 | * usbmuxd_device_info_t that will be filled with the device info. | ||
| 77 | * | ||
| 78 | * @return 0 if no matching device is connected, 1 if the device was found, | ||
| 79 | * or a negative value on error. | ||
| 80 | */ | ||
| 81 | int usbmuxd_get_device_by_uuid(const char *uuid, usbmuxd_device_info_t *device); | ||
| 66 | 82 | ||
| 67 | /** | 83 | /** |
| 68 | * Request proxy connect to | 84 | * Request proxy connect to |
