HomeFreeBSD

libusb: implement libusb_set_option

Description

libusb: implement libusb_set_option

Implement libusb_set_option for API compatibility of libusb upstream
The implementation status of each option is as following:

LIBUSB_OPTION_LOG_LEVEL: just like libusb_set_debug
LIBUSB_OPTION_LOG_CB: add callback support for DPRINTF
LIBUSB_OPTION_NO_DEVICE_DISCOVERY: disable initialization of devd and
netlink when register. Also, create no thread when registration of
callback happens.
LIBUSB_OPTION_USE_USBDK: no needed as USBDK is for Windows

Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D50818

Details

Provenance
aokblastAuthored on Jun 11 2025, 7:07 PM
Differential Revision
D50818: libusb: implement libusb_set_option
Parents
rGae489991d1c0: libusb: implement IAD parser
Branches
Unknown
Tags
Unknown