-
-
Notifications
You must be signed in to change notification settings - Fork 349
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
Fightwarn libusb 1.0+0.1 rebased part1 #1244
Merged
jimklimov
merged 59 commits into
networkupstools:libusb-1.0+0.1
from
jimklimov:fightwarn-libusb-1.0+0.1-rebased-part1
Dec 25, 2021
Merged
Fightwarn libusb 1.0+0.1 rebased part1 #1244
jimklimov
merged 59 commits into
networkupstools:libusb-1.0+0.1
from
jimklimov:fightwarn-libusb-1.0+0.1-rebased-part1
Dec 25, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…() so help for detailed options is near
… version selection from libusb-1.0 branch
…ts goals via --with-usb=VERSION
…_LIBUSB_0_1 macros with a 0 or 1 value
jimklimov
added
USB
CI
Entries related to continuous integration infrastructure (historically also recipes like Makefiles)
refactor/fightwarn
PR or issue proposal to improve code maintainability without functional changes, or to fix warnings
labels
Dec 24, 2021
…ed value - merging missed a few in libusb-1.0+0.1 branch
…IBUSB_x_y is set (defined and has value 1)
…IBUSB_x_y is set (defined and has value 1)
…IBUSB_x_y is set (defined and has value 1)
…IBUSB_x_y is set (defined and has value 1)
… => libusb_control_transfer() and usb_interrupt_read() => libusb_interrupt_transfer() for libusb-1.0 support
…ll LibUSB headers again
…s from *usb.c files
…_GCC_DIAGNOSTIC_IGNORED_TYPE_LIMITS_BESIDEFUNC since not all C files call them
…iases to real mappings with range-checks for libusb-1.0 API
…tuffing the number into a char
…t size_t) in this branch
…ents to our macro wrapper nut_usb_strerror()
…s (with variouts int types per API version)
…sgvalue and usb_ctrl_strindex
… etc., nut_usb_strerror() and similar macros
…are defined in config.h (so "#if HAVE_..." is valid and not guessed as 0)
…ow provided by usb-common.h
…g uses of (lib)usb_strerror with nut_usb_strerror()
…atible-pointer-types-discards-qualifiers
jimklimov
force-pushed
the
fightwarn-libusb-1.0+0.1-rebased-part1
branch
from
December 24, 2021 19:57
8254c53
to
e71bc60
Compare
…_detach_kernel_driver_np (0.1)
…omm_usb.c: honor that libusb-1.0 may HAVE_LIBUSB_DETACH_KERNEL_DRIVER_NP
…chcomm_usb.c: only apply usb_detach_kernel_driver_np to libusb-0.1 builds (no alias tricks)
jimklimov
force-pushed
the
fightwarn-libusb-1.0+0.1-rebased-part1
branch
from
December 25, 2021 14:16
9f555ec
to
abb01ed
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
CI
Entries related to continuous integration infrastructure (historically also recipes like Makefiles)
refactor/fightwarn
PR or issue proposal to improve code maintainability without functional changes, or to fix warnings
USB
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Helper "runner-up" commits for PR #1241 (rebasing that changeset over current target branch state, to minimise the noise in log and githubweb diff).
Update: Now this PR also adds explicit configure-time detection and build-time use of
libusb_detach_kernel_driver_np
(previously onlylibusb_detach_kernel_driver
was handled, and libusb-0.1'susb_detach_kernel_driver_np
of these.