You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hotplug: device->next must be NULL inside callback #792
The hotplug callback documentation added in #790 specifies:
The device->next pointer is always NULL. Each callback invocation describes exactly one device; compound or composite devices that expose multiple interfaces produce multiple callback invocations (typically delivered in quick succession).
No strings need to be duplicated (they remain valid for the duration of the callback). This prevents user code from traversing HIDAPI's internal list and keeps the public contract honest.
Scope
`libusb/hid.c` (`hid_internal_invoke_callbacks` and the `HID_API_HOTPLUG_ENUMERATE` path in `hid_hotplug_register_callback`).
`linux/hid.c`, `mac/hid.c`, `windows/hid.c` — same audit.
Activity