git: libusb: Implement v1.0 libusb_get_version() API

Aaron LI aly at crater.dragonflybsd.org
Sat Nov 8 21:24:18 PST 2025


commit 562980527a90b306615806248ec16ac270412443
Author: Aaron LI <aly at aaronly.me>
Date:   Sun Nov 9 11:58:06 2025 +0800

    libusb: Implement v1.0 libusb_get_version() API
    
    It seems our USB stack was synced from FreeBSD in 2016, so I inherit the
    'nano = 2016' version info from FreeBSD.
    
    This function is at least used by 'sysutils/nut' to fill the
    'driver.version.usb' metadata in 'usbhid-ups' driver.  The return value
    doesn't matter at all.
    
    Obtained-from: FreeBSD (commit 14b896ce80daad378a70a125ca15c2e23cd8d34b)

Summary of changes:
 lib/libusb/Makefile   |  1 +
 lib/libusb/libusb.3   |  6 +++++-
 lib/libusb/libusb.h   | 10 ++++++++++
 lib/libusb/libusb10.c | 15 +++++++++++++++
 4 files changed, 31 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/562980527a90b306615806248ec16ac270412443


-- 
DragonFly BSD source repository


More information about the Commits mailing list