aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20.h
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2010-01-29 02:44:06 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2010-01-29 02:44:06 +0000
commite50ac68b3dc725aa4b428d2446bb58fe4f5c288c (patch)
tree2391978b0a29215f8e39ca3810313d7efcd63dca /lib/libusb/libusb20.h
parent2155c5d81467f646691a8188dd0f0fc3764b2ad2 (diff)
downloadsrc-e50ac68b3dc725aa4b428d2446bb58fe4f5c288c.tar.gz
src-e50ac68b3dc725aa4b428d2446bb58fe4f5c288c.zip
Add a function to check if the usb devices is still connected.
Submitted by: Hans Petter Selasky
Notes
Notes: svn path=/head/; revision=203147
Diffstat (limited to 'lib/libusb/libusb20.h')
-rw-r--r--lib/libusb/libusb20.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libusb/libusb20.h b/lib/libusb/libusb20.h
index bb7d8a4ab3d2..6b253aa559a2 100644
--- a/lib/libusb/libusb20.h
+++ b/lib/libusb/libusb20.h
@@ -250,6 +250,7 @@ int libusb20_dev_request_sync(struct libusb20_device *pdev, struct LIBUSB20_CONT
int libusb20_dev_req_string_sync(struct libusb20_device *pdev, uint8_t index, uint16_t langid, void *ptr, uint16_t len);
int libusb20_dev_req_string_simple_sync(struct libusb20_device *pdev, uint8_t index, void *ptr, uint16_t len);
int libusb20_dev_reset(struct libusb20_device *pdev);
+int libusb20_dev_check_connected(struct libusb20_device *pdev);
int libusb20_dev_set_power_mode(struct libusb20_device *pdev, uint8_t power_mode);
uint8_t libusb20_dev_get_power_mode(struct libusb20_device *pdev);
int libusb20_dev_set_alt_index(struct libusb20_device *pdev, uint8_t iface_index, uint8_t alt_index);