summaryrefslogtreecommitdiffstats
path: root/lib/libusb/usb.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2011-07-16 08:29:12 +0000
committerhselasky <hselasky@FreeBSD.org>2011-07-16 08:29:12 +0000
commitcbcc560b1ef4e3268956232dcc43c9f45bbb9e42 (patch)
treed29e1041d5757acef0079a9d43dae3ebbc16d7ec /lib/libusb/usb.h
parentb3e331350eb3f9280f1c520a93d51993df0a659a (diff)
downloadFreeBSD-src-cbcc560b1ef4e3268956232dcc43c9f45bbb9e42.zip
FreeBSD-src-cbcc560b1ef4e3268956232dcc43c9f45bbb9e42.tar.gz
- Add two missing functions to the LibUSB v0.1 API.
- Clamp the string length to 255 bytes when getting the interface description. - Clamp data request length to 65535 bytes when doing control requests. MFC after: 3 days
Diffstat (limited to 'lib/libusb/usb.h')
-rw-r--r--lib/libusb/usb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libusb/usb.h b/lib/libusb/usb.h
index 8ee68f2..dc3959e 100644
--- a/lib/libusb/usb.h
+++ b/lib/libusb/usb.h
@@ -299,6 +299,8 @@ int usb_find_busses(void);
int usb_find_devices(void);
struct usb_device *usb_device(usb_dev_handle * dev);
struct usb_bus *usb_get_busses(void);
+int usb_get_driver_np(usb_dev_handle * dev, int interface, char *name, int namelen);
+int usb_detach_kernel_driver_np(usb_dev_handle * dev, int interface);
#if 0
{ /* style */
OpenPOWER on IntegriCloud