Skip to content

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

Merged
cmaglie merged 20 commits into
bugst:masterfrom
cmaglie:iConfiguration
May 19, 2026
Merged

Add more USB fields to the struct returned from enumerator#218
cmaglie merged 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

@cmaglie cmaglie self-assigned this May 15, 2026
@cmaglie cmaglie merged commit f85d843 into bugst:master May 19, 2026
8 checks passed
@cmaglie cmaglie deleted the iConfiguration branch May 19, 2026 12:59
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