summaryrefslogtreecommitdiffstats
path: root/libusbmuxd.h
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2009-03-28 01:29:57 +0100
committerGravatar Nikias Bassen2009-03-28 01:29:57 +0100
commit50fc7586b2abf8a5ce999235c82d9de1bab98bfd (patch)
tree9d40ee339ca716bb43ad57817a4c0dc76b76d3b6 /libusbmuxd.h
parent91d76eb4e449dec0cb23d56886817d9910963559 (diff)
downloadusbmuxd-50fc7586b2abf8a5ce999235c82d9de1bab98bfd.tar.gz
usbmuxd-50fc7586b2abf8a5ce999235c82d9de1bab98bfd.tar.bz2
debugging output fixed
'libusbmuxd' added to simplify use of usbmuxd in external tools testclient removed setting of configuration 3 disabled (to be handled by udev)
Diffstat (limited to 'libusbmuxd.h')
-rw-r--r--libusbmuxd.h27
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 @@
+#ifndef __LIBUSBMUXD_H
+#define __LIBUSBMUXD_H
+
+#include <usbmuxd.h>
+
+/**
+ * Contacts usbmuxd via it's unix domain socket and performs a scan for
+ * connected devices.
+ *
+ * @param devices Pointer to an array of usbmuxd_device_t.
+ * Assumed initially NULL, will be allocated by this function.
+ *
+ * @return number of devices found, negative on error
+ */
+int usbmuxd_scan(usbmuxd_device_t **devices);
+
+/**
+ * Performs the connect procedure via usbmuxd.
+ *
+ * @param device_id USB device number of the device to connect to
+ * @param port Port number to connect to
+ *
+ * @return socket of the connection, negative on error
+ */
+int usbmuxd_connect(uint32_t device_id, uint16_t port);
+
+#endif /* __LIBUSBMUXD_H */