diff options
Diffstat (limited to 'libusbmuxd.h')
| -rw-r--r-- | libusbmuxd.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/libusbmuxd.h b/libusbmuxd.h new file mode 100644 index 0000000..82f9a47 --- /dev/null +++ b/libusbmuxd.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | #ifndef __LIBUSBMUXD_H | ||
| 2 | #define __LIBUSBMUXD_H | ||
| 3 | |||
| 4 | #include <usbmuxd.h> | ||
| 5 | |||
| 6 | /** | ||
| 7 | * Contacts usbmuxd via it's unix domain socket and performs a scan for | ||
| 8 | * connected devices. | ||
| 9 | * | ||
| 10 | * @param devices Pointer to an array of usbmuxd_device_t. | ||
| 11 | * Assumed initially NULL, will be allocated by this function. | ||
| 12 | * | ||
| 13 | * @return number of devices found, negative on error | ||
| 14 | */ | ||
| 15 | int usbmuxd_scan(usbmuxd_device_t **devices); | ||
| 16 | |||
| 17 | /** | ||
| 18 | * Performs the connect procedure via usbmuxd. | ||
| 19 | * | ||
| 20 | * @param device_id USB device number of the device to connect to | ||
| 21 | * @param port Port number to connect to | ||
| 22 | * | ||
| 23 | * @return socket of the connection, negative on error | ||
| 24 | */ | ||
| 25 | int usbmuxd_connect(uint32_t device_id, uint16_t port); | ||
| 26 | |||
| 27 | #endif /* __LIBUSBMUXD_H */ | ||
