Parse USB interface number from device Hardware IDs. #360
No reviewers
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi!360
Loading…
Reference in a new issue
No description provided.
Delete branch "win_interface_number"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Strickly speaking we cannot parse interface string at all and only allowed to parse Hardware ID string.
@ -415,0 +418,4 @@and https://docs.microsoft.com/windows-hardware/drivers/install/standard-usb-identifiershardware_id is always expected to be uppercase.*/@ -487,6 +534,7 @@ static void hid_internal_get_info(struct hid_device_info* dev)end:free(interface_path);are we sure this is the best decision?
in case if we fail to read
HardwareIdwhy don't we just skip reading theinterface_numberand get to the next propertythe alignment "before" is intentional, please revert
revert
@ -487,6 +534,7 @@ static void hid_internal_get_info(struct hid_device_info* dev)end:free(interface_path);DEVPKEY_Device_HardwareIdsis mandatory property of any device node in Windows device tree. I think this check should be there just for consistency.fixed
fixed
@ -415,0 +418,4 @@and https://docs.microsoft.com/windows-hardware/drivers/install/standard-usb-identifiershardware_id is always expected to be uppercase.*/fixed
@ -412,10 +412,35 @@ static void hid_internal_get_ble_info(struct hid_device_info* dev, DEVINST dev_n}@ -412,10 +412,35 @@ static void hid_internal_get_ble_info(struct hid_device_info* dev, DEVINST dev_n}fixed
@ -487,6 +534,7 @@ static void hid_internal_get_info(struct hid_device_info* dev)end:free(interface_path);ok, at least it is consistent with the other parts in the same function