]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r322322: Expose device caps as libusb_bos_descriptor::dev_capability
authorkevans <kevans@FreeBSD.org>
Thu, 18 Jan 2018 21:39:03 +0000 (21:39 +0000)
committerkevans <kevans@FreeBSD.org>
Thu, 18 Jan 2018 21:39:03 +0000 (21:39 +0000)
commitf1935666e0471636cfda55938bd57fff70648277
treedbf1f78b4e683b16230a78ca0cbe4cfc2f74cdcb
parent67ec24fb218378a0c90c1016ae39f7e9263d99f5
MFC r322322: Expose device caps as libusb_bos_descriptor::dev_capability

Some libusb consumers in Linux-land (in this case, libusb4java) expect a
dev_capability member that they can use to enumerate the device
capabilities.

No particular layout is expected of this, just that it can be traversed
using the bLength member until bNumDeviceCapabilities are read and that the
consumer may then use one of the libusb_get_*_descriptor methods to extract
specific (usb 2.0 vs. ss) capability information.
lib/libusb/libusb.h
lib/libusb/libusb10_desc.c