diff options
| author | 2026-09-15 14:16:41 -0400 | |
|---|---|---|
| committer | 2026-11-22 18:01:38 +0100 | |
| commit | 7741349485f0741e8b2dbccd936faf487c3bdee4 (patch) | |
| tree | 4c8e56b676d74f1cfc6adbeba050003b965ef9de /src/client.h | |
| parent | 493b41ba0028d1c7c8d718c75103187598013188 (diff) | |
| download | usbmuxd-7741349485f0741e8b2dbccd936faf487c3bdee4.tar.gz usbmuxd-7741349485f0741e8b2dbccd936faf487c3bdee4.tar.bz2 | |
usb: Register the hotplug callback for any USB device class
usb_init() registered the libusb hotplug callback with dev_class 0, so only
devices whose device descriptor announces class 0 produced arrival and
departure events. Apple devices that report another device class were
never seen by the hotplug path and only picked up by polling, if at all.
One such device is the Apple T1 coprocessor (iBridge1,1, 05ac:8600 /
05ac:1281 in recovery) in the 2016 and 2017 Touch Bar MacBook Pros, which
re-enumerates several times during an EmbeddedOS restore driven through
usbmuxd and idevicerestore.
Match LIBUSB_HOTPLUG_MATCH_ANY for the device class, as is already done for
the product id; the callback itself still filters by the Apple vendor id.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'src/client.h')
0 files changed, 0 insertions, 0 deletions
