usbmuxd
usbmuxd copied to clipboard
Support usbmuxd on Windows
This PR adds support for usbmuxd on Windows.
In short, the following changes were required:
- Compatibility with winsock2 for sockets
- The "set configuration" command is not implemented by libusb on Windows, but it is supported by libusb-win32 (if you also use the libusb-win32 driver). So libusb-win32 is used on Windows to set the configuraton
- The polling sockets for usb devices are not available on libusb on Windows
- Some fixes to make the code play nice with the Visual C++ compiler
As always, feedback is welcome.
Needs a rebase.
did you test if it works at all?
old apple driver uses ioctl, new apple driver is based on winusb, does ubsmuxd communicate with this devices trough driver at all?
The PR is based on libusb-win32 and the libusb-win32 driver. It works/worked, though on Windows, you're probably better off just using the Apple Mobile Device Service unless you have a good reason not to.