Skip to content

hid_error implementation for libusb#708

Merged
Youw merged 7 commits into
masterfrom
libusb-error
Apr 26, 2026
Merged

hid_error implementation for libusb#708
Youw merged 7 commits into
masterfrom
libusb-error

Conversation

@Youw

@Youw Youw commented Nov 20, 2024

Copy link
Copy Markdown
Member
  • hid_error is set correctly for most of the API functions (except hid_enumerate/hid_open/etc.);
  • refactored iconv routines - common code for utf16 and utf8 to wchar_t implementation;
  • hid_libusb_error to have libusb error code when possible;

Closes: #690
Fixes: #684

Co-authored-by: Matheus Afonso Martins Moreira matheus@matheusmoreira.com

Youw and others added 2 commits October 2, 2024 14:22
- hid_error is set correctly for most of the API functions (except hid_enumerate/hid_open/etc.);
- refactored iconv routines - common code for utf16 and utf8 to wchar_t implementation;
- `hid_libusb_error` to have libusb error code when possible;

Closes: #690
Fixes: #684

Co-authored-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
@Youw Youw marked this pull request as draft November 20, 2024 21:03
@Youw

Youw commented Nov 20, 2024

Copy link
Copy Markdown
Member Author

Still need to implement global error.

@mcuee mcuee added the Core Related to common codes like hidapi.h label Nov 22, 2024
@Youw Youw added the libusb Related to libusb backend label Jan 13, 2025
@Youw Youw marked this pull request as ready for review March 30, 2026 22:24
@Youw

Youw commented Mar 30, 2026

Copy link
Copy Markdown
Member Author

This is ready now

@mcuee

mcuee commented Apr 26, 2026

Copy link
Copy Markdown
Member

Looks good to me.

@Youw Youw merged commit f5a0f74 into master Apr 26, 2026
23 checks passed
@Youw Youw deleted the libusb-error branch April 26, 2026 14:48
Youw added a commit that referenced this pull request Jul 13, 2026
Brings in #813 (IWYU + leak guards), #815 (virtual-device test harness),
#817 (CI vcvars fix, already cherry-picked) and #708 (libusb hid_error).
Conflicts in libusb/hid.c (hotplug context vs last_global_error, refactored
hid_enumerate vs its error reporting) and linux/hid.c (includes) resolved
by keeping both sides' functionality.

Assisted-by: claude-code:claude-fable-5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core Related to common codes like hidapi.h libusb Related to libusb backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

libusb backend: "hid_error is not implemented yet"

2 participants