diff options
author | Andrew Thompson <thompsa@FreeBSD.org> | 2010-01-29 02:44:06 +0000 |
---|---|---|
committer | Andrew Thompson <thompsa@FreeBSD.org> | 2010-01-29 02:44:06 +0000 |
commit | e50ac68b3dc725aa4b428d2446bb58fe4f5c288c (patch) | |
tree | 2391978b0a29215f8e39ca3810313d7efcd63dca /lib/libusb/libusb20_int.h | |
parent | 2155c5d81467f646691a8188dd0f0fc3764b2ad2 (diff) | |
download | src-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_int.h')
-rw-r--r-- | lib/libusb/libusb20_int.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libusb/libusb20_int.h b/lib/libusb/libusb20_int.h index 004b0cf381d7..b0e0e2dd7f65 100644 --- a/lib/libusb/libusb20_int.h +++ b/lib/libusb/libusb20_int.h @@ -101,6 +101,7 @@ typedef int (libusb20_set_power_mode_t)(struct libusb20_device *pdev, uint8_t po typedef int (libusb20_get_power_mode_t)(struct libusb20_device *pdev, uint8_t *power_mode); typedef int (libusb20_set_alt_index_t)(struct libusb20_device *pdev, uint8_t iface_index, uint8_t alt_index); typedef int (libusb20_set_config_index_t)(struct libusb20_device *pdev, uint8_t index); +typedef int (libusb20_check_connected_t)(struct libusb20_device *pdev); /* USB transfer specific */ typedef int (libusb20_tr_open_t)(struct libusb20_transfer *xfer, uint32_t MaxBufSize, uint32_t MaxFrameCount, uint8_t ep_no); @@ -117,6 +118,7 @@ typedef void (libusb20_tr_cancel_async_t)(struct libusb20_transfer *xfer); m(n, kernel_driver_active) \ m(n, process) \ m(n, reset_device) \ + m(n, check_connected) \ m(n, set_power_mode) \ m(n, get_power_mode) \ m(n, set_alt_index) \ |