Add support for errors in hid_error on MacOS #310

Closed
opened 2021-07-22 18:47:19 -05:00 by hardkrash · 2 comments
hardkrash commented 2021-07-22 18:47:19 -05:00 (Migrated from github.com)

The IOreturn value can be passed to the c library function mach_error_string to provide the error string for the error that was raised.

mach_error_string is defined in mach_error.h

char *mach_error_string(mach_error_t error_value); and a IOReturn is a version of mach_error_t

The `IOreturn` value can be passed to the c library function `mach_error_string` to provide the error string for the error that was raised. `mach_error_string` is defined in [mach_error.h](https://opensource.apple.com/source/xnu/xnu-2422.1.72/libsyscall/mach/mach/mach_error.h.auto.html) `char *mach_error_string(mach_error_t error_value);` and a `IOReturn` is a version of `mach_error_t`
mcuee commented 2021-07-31 08:06:09 -05:00 (Migrated from github.com)

@hardkrash Please help to create a pull request. Thanks.

@hardkrash Please help to create a pull request. Thanks.
Youw commented 2023-03-12 08:03:31 -05:00 (Migrated from github.com)

Oh, this is done as part of https://github.com/libusb/hidapi/pull/314.
Available in the latest release.

Oh, this is done as part of https://github.com/libusb/hidapi/pull/314. Available in the latest release.
Sign in to join this conversation.
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#310
No description provided.