hid_error implementation for libusb #708

Merged
Youw merged 7 commits from libusb-error into master 2026-04-26 09:48:01 -05:00
Youw commented 2024-11-20 15:02:02 -06:00 (Migrated from github.com)
  • 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: https://github.com/libusb/hidapi/pull/690
Fixes: https://github.com/libusb/hidapi/issues/684

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

- 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: https://github.com/libusb/hidapi/pull/690 Fixes: https://github.com/libusb/hidapi/issues/684 Co-authored-by: Matheus Afonso Martins Moreira <matheus@matheusmoreira.com>
Youw commented 2024-11-20 15:04:00 -06:00 (Migrated from github.com)

Still need to implement global error.

Still need to implement global error.
Youw commented 2026-03-30 17:25:36 -05:00 (Migrated from github.com)

This is ready now

This is ready now
mcuee (Migrated from github.com) approved these changes 2026-04-25 21:20:52 -05:00
mcuee commented 2026-04-25 21:21:05 -05:00 (Migrated from github.com)

Looks good to me.

Looks good to me.
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi!708
No description provided.