Skip to content

Add more USB fields to the struct returned from enumerator#218

Open
cmaglie wants to merge 20 commits into
bugst:masterfrom
cmaglie:iConfiguration
Open

Add more USB fields to the struct returned from enumerator#218
cmaglie wants to merge 20 commits into
bugst:masterfrom
cmaglie:iConfiguration

Conversation

@cmaglie
Copy link
Copy Markdown
Member

@cmaglie cmaglie commented May 15, 2026

This patch adds the following fields:

  • Manufacturer - the USB iManufacturer string from USB descriptor
  • Product - the USB iProduct string from USB descriptor (previously, on Windows, it was reporting the "FriendlyName")
  • Configuration - the USB iConfiguration string from USB configuration descriptor

It is heavily based on @facchinm's patch here #215.

I've taken the occasion to modernize the code:

  • Removed the win32 syscalls that are now part of the x/sys package
  • Fixed 2 memory leaks in the macosx implementation (Copilot really helped here 🤖)
  • Regenerate the syscall_windows.go with a recent GoLang environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants