A Zig library for talking to USB and Bluetooth HID devices on Linux, FreeBSD, Windows and macOS, without linking the C hidapi

document DeviceInfo

Add container level documentation and doc comments for the fields and init, in the same style as the comments Device carries. The container comment records what the struct actually is, a snapshot of one HIDIOCGRAWINFO ioctl paired with the device it was read from, and where to get one. The ownership rule is the part that was only discoverable from the source: the embedded Device stays open and belongs to whoever opened it, so callers of getDeviceInfo and DeviceInfoIterator still have to close it. The bustype comment repeats the warning from getBusType that ioctl.BUS is non-exhaustive, and init notes that info is not referenced after it returns and that Device.getDeviceInfo is the usual way in. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JRS7gtG7BeWuwFUf8xW4qS


Author jcollie.dev
Co-author Claude Opus 5 (1M context) Date Commit Parent f6b2900c
+26 -4
1 changed file
+26 -4
1 changed file