summaryrefslogtreecommitdiffstats
path: root/lib/libusb/libusb.3
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2010-10-14 20:04:36 +0000
committerhselasky <hselasky@FreeBSD.org>2010-10-14 20:04:36 +0000
commitf4157327e68c3d9fca74e7293fbcd5643046fd20 (patch)
treefa43319fefc62e8ee751a4bcef8985b2fdf2f589 /lib/libusb/libusb.3
parentdd8752941fd5a0473098812a21b50db6dfd30f32 (diff)
downloadFreeBSD-src-f4157327e68c3d9fca74e7293fbcd5643046fd20.zip
FreeBSD-src-f4157327e68c3d9fca74e7293fbcd5643046fd20.tar.gz
LibUSB (new API):
- Add a new API function to check the connected status of the USB handle in the LibUSB v1.0 and LibUSB v0.1 interfaces. Approved by: thompsa (mentor)
Diffstat (limited to 'lib/libusb/libusb.3')
-rw-r--r--lib/libusb/libusb.39
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libusb/libusb.3 b/lib/libusb/libusb.3
index b7967d5..d54ac73 100644
--- a/lib/libusb/libusb.3
+++ b/lib/libusb/libusb.3
@@ -231,6 +231,14 @@ been disconnected and a LIBUSB_ERROR code on failure.
.Pp
.
.Ft int
+.Fn libusb_check_connected "libusb_device_handle *devh"
+Test if USB device is still connected. Returns 0 on success,
+LIBUSB_ERROR_NO_DEVICE if has been disconnected and a LIBUSB_ERROR
+code on failure.
+.
+.Pp
+.
+.Ft int
.Fn libusb_kernel_driver_active "libusb_device_handle *devh" "int interface"
Determine if a driver is active on a interface. Returns 0 if no kernel driver
is active, returns 1 if a kernel driver is active, returns LIBUSB_ERROR_NO_DEVICE
@@ -488,6 +496,7 @@ The library is also compliant with LibUSB version 0.1.12.
.Fn usb_find_devices
.Fn usb_device
.Fn usb_get_busses
+.Fn usb_check_connected
.
.Sh SEE ALSO
.Xr libusb20 3 ,
OpenPOWER on IntegriCloud