Skip to content
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

Merge refined libusb-1.0+0.1 branch into NUT master #1254

Merged
merged 189 commits into from
Jan 11, 2022
Merged

Commits on Oct 2, 2017

  1. Initial port to libusb 1.0

    Starting with the configure checks, to detect if libusb 1.0 if available, and
    otherwise fall back to the libusb 0.1 backend
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    a90e228 View commit details
    Browse the repository at this point in the history
  2. ushid-ups: complete the port to libusb 1.0

    The port to libusb 1.0 is now complete for usbhid-ups. Other USB drivers
    (bcmxcp_usb, blazer_usb, nutdrv_atcl_usb, richcomm_usb, riello_usb,
    tripplite_usb, nutdrv_qx) have still to be addressed
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    9f4b9d9 View commit details
    Browse the repository at this point in the history
  3. bcmxcp_usb: initial port to libusb 1.0

    The port to libusb 1.0 is complete, at least from a build perspective. This now
    needs to be tested with devices
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    f08dcc4 View commit details
    Browse the repository at this point in the history
  4. bcmxcp_usb: code cleanup

    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    b6f8abd View commit details
    Browse the repository at this point in the history
  5. blazer_usb: initial port to libusb 1.0

    The port to libusb 1.0 is complete, at least from a build perspective. This now
    needs to be tested with devices
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    27bc1f9 View commit details
    Browse the repository at this point in the history
  6. nutdrv_atcl_usb: initial port to libusb 1.0

    The port to libusb 1.0 is complete, at least from a build perspective. This now
    needs to be tested with devices
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    ddbfad5 View commit details
    Browse the repository at this point in the history
  7. Forgotten occurences of libusb.h renaming

    NUT internal header "libusb.h" was renamed, since it collides with the libusb
    1.0 header, which has the same name. A few occurences of reference and
    documentation were however missing
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    2aaed2d View commit details
    Browse the repository at this point in the history
  8. nutdrv_atcl_usb: add the missing detach call

    libusb 1.0 provide its own routine for detaching kernel driver
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    9efe182 View commit details
    Browse the repository at this point in the history
  9. richcomm_usb: initial port to libusb 1.0

    The port to libusb 1.0 is complete, at least from a build perspective. This now
    needs to be tested with devices
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    476f6d4 View commit details
    Browse the repository at this point in the history
  10. riello_usb: initial port to libusb 1.0

    The port to libusb 1.0 is complete, at least from a build perspective. This now
    needs to be tested with devices
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    e38683b View commit details
    Browse the repository at this point in the history
  11. tripplite_usb: initial port to libusb 1.0

    The port to libusb 1.0 is complete, at least from a build perspective. This now
    needs to be tested with devices
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    f3ff5d4 View commit details
    Browse the repository at this point in the history
  12. richcomm_usb: missing function remap for libusb 0.1

    usb_strerror was not remapped for libusb 0.1 implementation
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    e329693 View commit details
    Browse the repository at this point in the history
  13. nutdrv_qx: initial port to libusb 1.0

    The port to libusb 1.0 is complete, at least from a build perspective. This now
    needs to be tested with devices
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    a7a6d39 View commit details
    Browse the repository at this point in the history
  14. permute typedef order of usb_dev_handle

    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    f8f9f7d View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    9a69a45 View commit details
    Browse the repository at this point in the history
  16. Remove redundant variable

    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    3bb6805 View commit details
    Browse the repository at this point in the history
  17. nut-scanner: initial port to libusb 1.0

    The port to libusb 1.0 is complete, at least from a build perspective. This now
    needs to be tested with devices
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    dc8c819 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e90eefa View commit details
    Browse the repository at this point in the history
  19. nut-scanner: missing symbols lookup for libusb 1.0

    A few symbols from libusb 1.0 were wrongly used directly, instead of being
    looked up and loaded at init time
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    c74fd0e View commit details
    Browse the repository at this point in the history
  20. usbhid-ups/mge-shut: rework errno/errors handling

    libusb 1.0 has its own set of return codes, and error interface. Rework the
    common HID core (shared between usbhid-ups and mge-shut) so that error handling
    can work with both, and using either libusb 0.1 or 1.0 for usbhid-ups
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    e15fc06 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    99acb36 View commit details
    Browse the repository at this point in the history
  22. libusb 1.0 port: simplify bus publication

    bus publication was wrongly listing both the bus and the portname, instead of
    the bus only. This may have caused some issue when trying to match the port
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    204d5f5 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    aca34e0 View commit details
    Browse the repository at this point in the history
  24. libusb 1.0: remove unused typesafe_control_msg() workaround

    For libusb 0.1 implementation, we had to workaround a libusb API goofs, by
    wrapping the base function usb_control_msg(), and casting the variables to the
    right type. This is not needed for libusb 1.0 implementation, but was wrongly
    left in the code (reported by Charles Lepple)
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    e1d8086 View commit details
    Browse the repository at this point in the history
  25. libusb 1.0 port: rework the kernel driver detachment

    libusb 1.0 has introduced a new function (libusb_set_auto_detach_kernel_driver),
    beside from the explicit kernel driver detachment request
    (libusb_detach_kernel_driver). However, the former is not available on all
    systems. As an example, FreeBSD 10.1-10.3 does not have this. The detachment and
    interface claiming has been reworked to handle this case (reported by Charles
    Lepple)
    
    Reference: #300
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    2f87f77 View commit details
    Browse the repository at this point in the history
  26. libusb 1.0 port: fix kernel driver detachment

    Following the recent modification for the kernel driver detachment, and the
    related functions availability depending on the platforms, nutdrv_atcl_usb and
    richcomm_usb were using the wrong macro for libusb_set_auto_detach_kernel_driver
    and were missing the libusb 1.0 code for explicit kernel driver detachment
    
    Reference: #300
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    d073694 View commit details
    Browse the repository at this point in the history
  27. libusb 1.0 port: complete usb_set_altinterface code

    usb_set_altinterface allows to force the USB code to call
    `libusb_set_interface_alt_setting (0, 0)` (equivalent to
    `libusb_set_altinterface(0)` in libusb 0.1), as was done in NUT 2.7.2 and
    earlier. However, the libusb 1.0 implementation was still missing the related
    code
    
    Reference: #300
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    c89f4d7 View commit details
    Browse the repository at this point in the history
  28. libusb 1.0 port: remove the check on USB device count

    With the port to libusb 1.0, a sanity check was done on the available number of
    USB devices to try. This however caused a behavior regression, since the only
    device that NUT may have access to can be the only UPS connected. In this case,
    the driver may exit upon trying to reconnect if the device is transiently not
    available
    
    Reference: #300
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    2b8c22a View commit details
    Browse the repository at this point in the history
  29. libusb 1.0 port: fix return code for interrupt ops

    libusb 1.0 returns on success, the number of bytes actually transferred or
    otherwise an error code, except for interrupt transfers, where the actual
    transfer size is stored in a separate variable. The libusb 1.0 implementation in
    NUT thus needed to be fixed to behave the same way than the libusb 0.1
    implementation
    
    Reference: #300
    aquette authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    ac757cc View commit details
    Browse the repository at this point in the history
  30. libusb1: use return code from libusb_open()

    Per <http://libusb.sf.net/api-1.0/group__dev.html#ga8163100afdf933fabed0db7fa81c89d1>,
    the handle is only populated when the return code is 0.
    
    This fixes a crash during device detection where more than one HID UPS is
    available, and the driver needs to skip the first one.
    clepple authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    eeb11e6 View commit details
    Browse the repository at this point in the history
  31. Add driver.version.usb variable

    Reference: #300
    clepple authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    f7ed6f0 View commit details
    Browse the repository at this point in the history
  32. Fix spacers

    Signed-off-by: Arnaud Quette <ArnaudQuette@Eaton.com>
    arnaudquette-eaton authored and zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    d258821 View commit details
    Browse the repository at this point in the history
  33. libusb 1.0 port: don't check if libusb is usable, if it's not available

    Since LIBUSB_VERSION is always non-empty ('none', if libusb is not found), testing for non-emptiness will always fail and libusb 0.1/libusb-compat checks will always be performed.
    So, test instead that it is not 'none'.
    zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    885f28a View commit details
    Browse the repository at this point in the history
  34. libusb 1.0 port: use only one AC_DEFINE'd variable for libusb 0.1/-co…

    …mpat
    
    Libusb 0.1/libusb-compat can be found with both pkg-config and with its own libusb-config, but, regardless of how we found it, we need to use the same AC_DEFINE'd variable to signal its presence.
    zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    44cc0d3 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    30e6ef7 View commit details
    Browse the repository at this point in the history
  36. libusb 1.0 port: support libusb 0.1/-compat even when 1.0 is available

    Since libusb 1.0 can happily coexist with libusb 0.1/libusb-compat, rework our NUT_CHECK_LIBUSB macro so that, if both are available, libusb 1.0 precedence can be overridden passing to `configure` appropriate values for `--with-usb-includes` and `--with-usb-libs` (i.e. libusb 0.1/libusb-compat-only settings).
    zykh committed Oct 2, 2017
    Configuration menu
    Copy the full SHA
    d098461 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2017

  1. Configuration menu
    Copy the full SHA
    596f17b View commit details
    Browse the repository at this point in the history
  2. Update configure documentation for libusb

    Document the possibility to override the auto-detection choice
    
    Signed-off-by: Arnaud Quette <ArnaudQuette@Eaton.com>
    arnaudquette-eaton authored and zykh committed Oct 4, 2017
    Configuration menu
    Copy the full SHA
    dfd514e View commit details
    Browse the repository at this point in the history

Commits on Nov 26, 2017

  1. Configuration menu
    Copy the full SHA
    629fe9f View commit details
    Browse the repository at this point in the history
  2. libusb1: LBYL approach to libusb_set_auto_detach_kernel_driver()

    Switch to look-before-you-leap (LBYL) approach to calling
    libusb_set_auto_detach_kernel_driver(), since FreeBSD (11.0 and 11.1; probably
    others) requires root privileges to attempt the kernel driver detach (even if
    no detach operation is needed).
    clepple committed Nov 26, 2017
    Configuration menu
    Copy the full SHA
    ca3298f View commit details
    Browse the repository at this point in the history
  3. libusb1: const-ify the USB interface number

    Remove a few "magic numbers" from USB/HID-related calls.
    clepple committed Nov 26, 2017
    Configuration menu
    Copy the full SHA
    80bc452 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    170c0ee View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2017

  1. Merge branch 'master' into libusb-1.0+0.1

    Closes: #300
    
    Notable commits from master:
    
     * Documentation
     * statepath environment variables (#473 / #507)
     * nut-scanner (issue #500 / pull #502)
     * Fix one parallel build problem (#418)
     * Compute output load if not provided (#484)
    clepple committed Dec 3, 2017
    Configuration menu
    Copy the full SHA
    0974329 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2018

  1. Add autoconf check for libusb_strerror()

    Closes: #509
    clepple committed Jan 2, 2018
    Configuration menu
    Copy the full SHA
    edda710 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2018

  1. Configuration menu
    Copy the full SHA
    3f05ee2 View commit details
    Browse the repository at this point in the history

Commits on Jan 11, 2018

  1. autoconf: support libusb 0.1 implementations identified as 'libusb-0.1'

    Make NUT_CHECK_LIBUSB macro aware of those libusb 0.1 implementations named in their pkg-config files as 'libusb-0.1', instead of just 'libusb' (e.g. on FreeBSD).
    zykh committed Jan 11, 2018
    Configuration menu
    Copy the full SHA
    0964424 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2018

  1. Configuration menu
    Copy the full SHA
    bc2480c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    310ff26 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4f84b7f View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    470a386 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    9a0244a View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2018

  1. Configuration menu
    Copy the full SHA
    fb4ef59 View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2018

  1. libusb: clean up after ourselves

    libusb 1.0:
    - a device list allocated with libusb_get_device_list() must be deallocated with a call to libusb_free_device_list(),
    - ditto for the config descriptor.
    
    libusb 0.1 and 1.0:
    - release (commented-out) interfaces when done with them,
    - remove unnecessary goto's after calls to fatal*() functions,
    - nutscanner: also close the USB device handle (and libusb_exit() for libusb 1.0) on errors.
    zykh committed Mar 14, 2018
    Configuration menu
    Copy the full SHA
    2e6be70 View commit details
    Browse the repository at this point in the history
  2. richcomm_usb: use the local USB device handle in usb_device_open()

    Although at that point of usb_device_open(), both the local (handle) and the global (udev) device handles point to the same thing, prefer the local one to make things clearer.
    zykh committed Mar 14, 2018
    Configuration menu
    Copy the full SHA
    d04a9ad View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dc30233 View commit details
    Browse the repository at this point in the history
  4. libusb: improve handling of errors when allocating new memory

    - libusb 0.1 (when not shared with libusb 1.0): prefer our xstrdup() function -- on errors, it'll automatically call fatal*(),
    - libusb 1.0 (and nutscanner): don't use our x{malloc,strdup,...}() functions, so that we can free the list of devices (and close the device and call libusb_exit() in nutscanner) before exiting.
    zykh committed Mar 14, 2018
    Configuration menu
    Copy the full SHA
    b28e1e0 View commit details
    Browse the repository at this point in the history
  5. libusb: in nutscanner, free busname also on nutscan_new_device() erro…

    …rs or when done with it
    zykh committed Mar 14, 2018
    Configuration menu
    Copy the full SHA
    f60df9b View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c97d4c9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    76388c7 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2018

  1. libusb1: don't use the same var to iterate both devices and interface…

    … descriptor
    
    From our old libusb.c, libusb1.c inherited a for loop that iterates over the interface descriptor in order to try and find the HID descriptor among its 'extra' bytes.
    Unluckily, it uses the same var (i) that's now used, at the same time, for the iteration through the device list, in which it happens to be nested.
    Since this obviously spells disaster, make these vars unique (and add a bit of debugging info).
    zykh committed Mar 15, 2018
    Configuration menu
    Copy the full SHA
    e615d08 View commit details
    Browse the repository at this point in the history

Commits on May 1, 2018

  1. Configuration menu
    Copy the full SHA
    0cb42f0 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2018

  1. In HIDGetEvents.c call to get_interrupt, increase timeout from 250 to…

    … 750 ms to allow more time for UPS response
    
    (cherry picked from commit 5cea18c --@clepple)
    
    Closes: #543
    Closes: #542
    stevegilbert23 authored and clepple committed May 28, 2018
    Configuration menu
    Copy the full SHA
    bac7d0f View commit details
    Browse the repository at this point in the history

Commits on Sep 7, 2018

  1. Configuration menu
    Copy the full SHA
    73c4813 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0843ac3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    53cd490 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    066a332 View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2018

  1. Configuration menu
    Copy the full SHA
    60318a9 View commit details
    Browse the repository at this point in the history
  2. usbhid-ups.c : report the libusb version involved in the driver at th…

    …is time - also the values registered with comm_driver structure
    jimklimov committed Sep 19, 2018
    Configuration menu
    Copy the full SHA
    45e304c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    93ac2c2 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2018

  1. Configuration menu
    Copy the full SHA
    a180c42 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #613 from jimklimov/libusb-1.0+0.1=debug

    Libusb 1.0+0.1 debug
    jimklimov authored Oct 2, 2018
    Configuration menu
    Copy the full SHA
    ca72993 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2021

  1. Configuration menu
    Copy the full SHA
    d0c6300 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    96c3a88 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    765ce01 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    94518a7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    0021958 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d77f102 View commit details
    Browse the repository at this point in the history
  7. drivers/riello_usb.c: properly export variables shared between driver…

    … subtypes (reapply to libusb-1.0 branch)
    jimklimov committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    56c145a View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    36c4d52 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    3345221 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6b9a28e View commit details
    Browse the repository at this point in the history
  11. m4/nut_check_libusb.m4: the "additional USB-related checks" should no…

    …w manipulate "LIBS" not "LIBUSB_LIBS"
    jimklimov committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    a3b1c44 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    241b292 View commit details
    Browse the repository at this point in the history
  13. ci_build.sh: BUILD_TYPE="default-all-errors": support looping over NU…

    …T_USB_VARIANTS as well
    jimklimov committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    b053fdb View commit details
    Browse the repository at this point in the history
  14. ci_build.sh: BUILD_TYPE="default-all-errors": between configure and b…

    …uild, report the Configured NUT_SSL_VARIANT
    jimklimov committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    ded173c View commit details
    Browse the repository at this point in the history
  15. ci_build.sh: BUILD_TYPE="default-all-errors": between configure and b…

    …uild, report the Configured NUT_USB_VARIANT
    jimklimov committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    603aa34 View commit details
    Browse the repository at this point in the history
  16. ci_build.sh: BUILD_TYPE="default-all-errors": ensure BUILDSTODO count…

    …s are decremented when configuration failed
    jimklimov committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    afb8550 View commit details
    Browse the repository at this point in the history
  17. ci_build.sh: BUILD_TYPE="default-all-errors": ensure BUILDSTODO count…

    …s for SSL+USB are planned same as executed
    jimklimov committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    13882e0 View commit details
    Browse the repository at this point in the history
  18. ci_build.sh: BUILD_TYPE="default-all-errors": ensure BUILDSTODO count…

    …s for SSL+USB are planned same as executed - and handle explicit NUT_USB_VARIANTS=no
    jimklimov committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    42922b2 View commit details
    Browse the repository at this point in the history
  19. drivers/nutdrv_qx.c: only define "Compatibility layer between libusb …

    …0.1 and 1.0" if we build with QX_USB at all (no required headers are in context otherwise)
    jimklimov committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    b40f205 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    37928ee View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    11e4fa2 View commit details
    Browse the repository at this point in the history
  22. drivers/bcmxcp_ser.{c,h} + tools/nut-scanner/scan_eaton_serial.c: use…

    … longer global var name (AUT => BCMXCP_AUTHCMD)
    jimklimov committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    2b7db25 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    d4cde03 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    ed19fb7 View commit details
    Browse the repository at this point in the history
  25. ci_build.sh: default-all-errors: report BUILDSTODO_INITIAL at the end…

    … of log, and if non-zero BUILDSTODO remained unaccounted
    jimklimov committed Nov 15, 2021
    Configuration menu
    Copy the full SHA
    26c679a View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    fa1dfbf View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    75e1f7e View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    b6f1d78 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    ac8d47c View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2021

  1. Configuration menu
    Copy the full SHA
    2b1205c View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    89cf17a View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2021

  1. Configuration menu
    Copy the full SHA
    49c46c2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cda8464 View commit details
    Browse the repository at this point in the history
  3. drivers/libusb1.c: nut_libusb_open(): range-check and cast libusb_con…

    …trol_transfer() arg rdlen
    jimklimov committed Dec 7, 2021
    Configuration menu
    Copy the full SHA
    0538311 View commit details
    Browse the repository at this point in the history

Commits on Dec 21, 2021

  1. Configuration menu
    Copy the full SHA
    8dff0ba View commit details
    Browse the repository at this point in the history
  2. ci_build.sh: allow to build custom NUT_USB_VARIANTS and skip building…

    … a separate NUT_SSL_VARIANTS=auto
    jimklimov committed Dec 21, 2021
    Configuration menu
    Copy the full SHA
    eb5eb35 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e398c01 View commit details
    Browse the repository at this point in the history

Commits on Dec 22, 2021

  1. Configuration menu
    Copy the full SHA
    b2e5cf7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e91a7a7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    938ab17 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    fa26f2d View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2021

  1. Configuration menu
    Copy the full SHA
    2173f04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9b340dd View commit details
    Browse the repository at this point in the history
  3. ci_build.sh: separate the "RES" vars used for configure_nut() and def…

    …ault-all-errors processing (extend to libusb-1.0* branches)
    jimklimov committed Dec 23, 2021
    Configuration menu
    Copy the full SHA
    90f9a25 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f3cf4ed View commit details
    Browse the repository at this point in the history

Commits on Dec 24, 2021

  1. Configuration menu
    Copy the full SHA
    8bd0050 View commit details
    Browse the repository at this point in the history
  2. configure.ac: regroup some NUT_ARG_WITH() closer to their NUT_CHECK_*…

    …() so help for detailed options is near
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    6a0210e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    68e2952 View commit details
    Browse the repository at this point in the history
  4. m4/nut_check_libusb.m4 + configure.ac: port newer solution for libusb…

    … version selection from libusb-1.0 branch
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    36ddfc9 View commit details
    Browse the repository at this point in the history
  5. configure.ac et al: drop the extra --with-libusb-version and handle i…

    …ts goals via --with-usb=VERSION
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    caed361 View commit details
    Browse the repository at this point in the history
  6. m4/nut_check_libusb.m4: always AC_DEFINE the WITH_LIBUSB_1_0 and WITH…

    …_LIBUSB_0_1 macros with a 0 or 1 value
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    28500b7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    aca0b7d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    72c5586 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d69ce0c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1b16045 View commit details
    Browse the repository at this point in the history
  11. Convert C code from "#ifdef WITH_LIBUSB_x_y" to "#if" tests for defin…

    …ed value - merging missed a few in libusb-1.0+0.1 branch
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    e1f305b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    e3daf23 View commit details
    Browse the repository at this point in the history
  13. drivers/nut_libusb.h: sanity check that exactly one version of WITH_L…

    …IBUSB_x_y is set (defined and has value 1)
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    cff486f View commit details
    Browse the repository at this point in the history
  14. drivers/bcmxcp_usb.c: sanity check that exactly one version of WITH_L…

    …IBUSB_x_y is set (defined and has value 1)
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    73bed50 View commit details
    Browse the repository at this point in the history
  15. drivers/usb-common.h: sanity check that exactly one version of WITH_L…

    …IBUSB_x_y is set (defined and has value 1)
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    64c026f View commit details
    Browse the repository at this point in the history
  16. tools/nut-usbinfo.pl: sanity check that exactly one version of WITH_L…

    …IBUSB_x_y is set (defined and has value 1)
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    01b827c View commit details
    Browse the repository at this point in the history
  17. drivers/bcmxcp_usb.c: range-check and cast args for usb_control_msg()…

    … => libusb_control_transfer() and usb_interrupt_read() => libusb_interrupt_transfer() for libusb-1.0 support
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    5d04357 View commit details
    Browse the repository at this point in the history
  18. drivers/nut_libusb.h already includes "usb-common.h" so no need to pu…

    …ll LibUSB headers again
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    8376307 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    75f5c99 View commit details
    Browse the repository at this point in the history
  20. drivers/usb-common.h: mark "static inline" functions with HAVE_PRAGMA…

    …_GCC_DIAGNOSTIC_IGNORED_TYPE_LIMITS_BESIDEFUNC since not all C files call them
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    df22f5d View commit details
    Browse the repository at this point in the history
  21. drivers/usb-common.h: convert usb_get_string{_simple}() from macro al…

    …iases to real mappings with range-checks for libusb-1.0 API
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    2b70b19 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    2eaf526 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    8da949e View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    71b58da View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    62d27f2 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    691d397 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    0913c8d View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    64b9625 View commit details
    Browse the repository at this point in the history
  29. drivers/usbhid-ups.c: current use of SHUT_MODE relies on defined/not-…

    …defined, not on value for plain #if macro
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    58076f0 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    b4a1b1a View commit details
    Browse the repository at this point in the history
  31. USB: Rename typedef usb_ctrl_char to usb_ctrl_charbuf to avoid confsi…

    …on (it is a char* sibling, not plain char)
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    c2029ec View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    c498c8a View commit details
    Browse the repository at this point in the history
  33. drivers/usb-common.h + nut_libusb.h: typedef more usb_ctrl_* tokens t…

    …o match libusb-0.1 vs 1.0 API
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    aef977a View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    4e6bdb6 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    240ed66 View commit details
    Browse the repository at this point in the history
  36. drivers/libshut.c: shut_control_msg(): range-check data_size before s…

    …tuffing the number into a char
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    7575f9b View commit details
    Browse the repository at this point in the history
  37. drivers/libshut.c: shut_control_msg(): data_size is a "short int" (no…

    …t size_t) in this branch
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    5b17ec5 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    fdafe61 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    8c17853 View commit details
    Browse the repository at this point in the history
  40. drivers/usb-common.h: note the arg type for libusb_strerror() in comm…

    …ents to our macro wrapper nut_usb_strerror()
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    577a08b View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    ecbde45 View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    ba3b133 View commit details
    Browse the repository at this point in the history
  43. Configuration menu
    Copy the full SHA
    47f4e51 View commit details
    Browse the repository at this point in the history
  44. drivers/usb-common.h: clarify that libusb timeouts are in millisecond…

    …s (with variouts int types per API version)
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    17d72c0 View commit details
    Browse the repository at this point in the history
  45. drivers/usb-common.h: define PRI_NUT_USB_CTRL_CHARBUFSIZE, usb_ctrl_m…

    …sgvalue and usb_ctrl_strindex
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    5c816d9 View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    620c1fc View commit details
    Browse the repository at this point in the history
  47. drivers/usb-common.h: whitespace-separate definitions of ERROR_ACCESS…

    … etc., nut_usb_strerror() and similar macros
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    1bcd3b2 View commit details
    Browse the repository at this point in the history
  48. m4/nut_check_libusb.m4: make sure (missing) methods from another API …

    …are defined in config.h (so "#if HAVE_..." is valid and not guessed as 0)
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    516095c View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    8854934 View commit details
    Browse the repository at this point in the history
  50. drivers/nutdrv_atcl_usb.c: drop local libusb-0.1 vs 1.0 definitions n…

    …ow provided by usb-common.h
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    f968ed3 View commit details
    Browse the repository at this point in the history
  51. Configuration menu
    Copy the full SHA
    8ec7bd6 View commit details
    Browse the repository at this point in the history
  52. Configuration menu
    Copy the full SHA
    a904ede View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    45c470b View commit details
    Browse the repository at this point in the history
  54. drivers/riello_usb.c, richcomm_usb.c, nutdrv_atcl_usb.c: fix remainin…

    …g uses of (lib)usb_strerror with nut_usb_strerror()
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    9cbd3e0 View commit details
    Browse the repository at this point in the history
  55. Configuration menu
    Copy the full SHA
    80d30c4 View commit details
    Browse the repository at this point in the history
  56. configure.ac: update "clang-medium" warnings pre-set with -Wno-incomp…

    …atible-pointer-types-discards-qualifiers
    jimklimov committed Dec 24, 2021
    Configuration menu
    Copy the full SHA
    e71bc60 View commit details
    Browse the repository at this point in the history

Commits on Dec 25, 2021

  1. drivers/usb-common.h: map libusb_detach_kernel_driver_np (1.0) as usb…

    …_detach_kernel_driver_np (0.1)
    jimklimov committed Dec 25, 2021
    Configuration menu
    Copy the full SHA
    377c438 View commit details
    Browse the repository at this point in the history
  2. m4/nut_check_libusb.m4, drivers/libusb1.c + nutdrv_atcl_usb.c + richc…

    …omm_usb.c: honor that libusb-1.0 may HAVE_LIBUSB_DETACH_KERNEL_DRIVER_NP
    jimklimov committed Dec 25, 2021
    Configuration menu
    Copy the full SHA
    777406a View commit details
    Browse the repository at this point in the history
  3. m4/nut_check_libusb.m4, drivers/usb-common.h + nutdrv_atcl_usb.c + ri…

    …chcomm_usb.c: only apply usb_detach_kernel_driver_np to libusb-0.1 builds (no alias tricks)
    jimklimov committed Dec 25, 2021
    Configuration menu
    Copy the full SHA
    abb01ed View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2c30c70 View commit details
    Browse the repository at this point in the history
  5. drivers (c,h) USB, HID and SHUT: converge parameter usage from strict…

    … int types to backend API dependent "usb_ctrl_*" and "usb_dev_handle" typedefs, then range-check and cast the numbers, and avoid build warnings
    jimklimov committed Dec 25, 2021
    Configuration menu
    Copy the full SHA
    3f8d588 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    06ba4f0 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    bc10d22 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9ca6949 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    c0521e6 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    0c41d15 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e41daa5 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    35bb739 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    3f3c251 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    4de9a75 View commit details
    Browse the repository at this point in the history
  15. drivers/riello_ser.c: do not include hidparser.h (hiccups in usb-comm…

    …on.h due to lack of WITH_LIBUSB_x_y)
    jimklimov committed Dec 25, 2021
    Configuration menu
    Copy the full SHA
    ea87c8c View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2022

  1. Configuration menu
    Copy the full SHA
    e3cc3e6 View commit details
    Browse the repository at this point in the history

Commits on Jan 10, 2022

  1. Configuration menu
    Copy the full SHA
    22aca84 View commit details
    Browse the repository at this point in the history