-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for setting the log callback with libusb_set_option/libusb_init_context #1265
Add support for setting the log callback with libusb_set_option/libusb_init_context #1265
Conversation
eb496ea
to
777e008
Compare
There are CI build issues to be sorted out, for MSYS2 Clang and Appveyor (MSVC build). |
777e008
to
3d8b856
Compare
Ok, that should fix it. Figured that most compilers had implemented the typeof extension but Microsoft did not bother with it. |
3d8b856
to
f4618e1
Compare
Test under Windows are good, for both MinGW64 build MSVC x64 build.
|
Alright. Looks good. Thanks @mcuee! Now to try to get one or two more reviews. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't see any obviouse issues with the implementation.
Even the test coverage is great.
…b_init_context This commit effectively deprecates libusb_set_log_cb by adding support for setting the callback in either libusb_set_option or libusb_init_context. Since the libusb_set_log_cb is already in use we can not easily deprecate it without first incrementing the major version. We may do that in the future. Signed-off-by: Nathan Hjelm <hjelmn@google.com>
f4618e1
to
d96a230
Compare
Nothing else catching my sight. |
This commit effectively deprecates libusb_set_log_cb by adding support for setting the callback in either libusb_set_option or libusb_init_context. Since the libusb_set_log_cb is already in use we can not easily deprecate it without first incrementing the major version. We may do that in the future.