diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-06-02 17:27:51 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-06-02 17:27:51 +0000 |
commit | 6425a0a49f1c41f6590ed3c281f8909459863927 (patch) | |
tree | 9a8dbac22593d47246fb93f64ff59fe60e46010f /lib/libusb/libusb20.c | |
parent | 879660c80273fd40883038a11364bbc0ec9798ae (diff) | |
download | FreeBSD-src-6425a0a49f1c41f6590ed3c281f8909459863927.zip FreeBSD-src-6425a0a49f1c41f6590ed3c281f8909459863927.tar.gz |
Add libusb20_tr_get_length to get the transfer length.
Submitted by: Hans Petter Selasky
Diffstat (limited to 'lib/libusb/libusb20.c')
-rw-r--r-- | lib/libusb/libusb20.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libusb/libusb20.c b/lib/libusb/libusb20.c index 0c80c8b..f684bef 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) { |