aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20.c
diff options
context:
space:
mode:
authorAndrew Thompson <thompsa@FreeBSD.org>2009-06-02 17:27:51 +0000
committerAndrew Thompson <thompsa@FreeBSD.org>2009-06-02 17:27:51 +0000
commit545b01ad3a7ded3fc7bcf82749757641b66e4b73 (patch)
tree9a8dbac22593d47246fb93f64ff59fe60e46010f /lib/libusb/libusb20.c
parent1da89db5d6c7939dbdd61a265f1c7c3d4530c358 (diff)
downloadsrc-545b01ad3a7ded3fc7bcf82749757641b66e4b73.tar.gz
src-545b01ad3a7ded3fc7bcf82749757641b66e4b73.zip
Add libusb20_tr_get_length to get the transfer length.
Submitted by: Hans Petter Selasky
Notes
Notes: svn path=/head/; revision=193313
Diffstat (limited to 'lib/libusb/libusb20.c')
-rw-r--r--lib/libusb/libusb20.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libusb/libusb20.c b/lib/libusb/libusb20.c
index 0c80c8b8ce96..f684bef0e7c7 100644
--- a/lib/libusb/libusb20.c
+++ b/lib/libusb/libusb20.c
@@ -319,6 +319,12 @@ libusb20_tr_set_flags(struct libusb20_transfer *xfer, uint8_t flags)
return;
}
+uint32_t
+libusb20_tr_get_length(struct libusb20_transfer *xfer, uint16_t frIndex)
+{
+ return (xfer->pLength[frIndex]);
+}
+
void
libusb20_tr_set_length(struct libusb20_transfer *xfer, uint32_t length, uint16_t frIndex)
{