aboutsummaryrefslogtreecommitdiff
path: root/lib/libusb/libusb20.h
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.h
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.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 8a46febe35f9..161411198320 100644
--- a/lib/libusb/libusb20.h
+++ b/lib/libusb/libusb20.h
@@ -216,6 +216,7 @@ void libusb20_tr_drain(struct libusb20_transfer *xfer);
void libusb20_tr_set_buffer(struct libusb20_transfer *xfer, void *buffer, uint16_t fr_index);
void libusb20_tr_set_callback(struct libusb20_transfer *xfer, libusb20_tr_callback_t *cb);
void libusb20_tr_set_flags(struct libusb20_transfer *xfer, uint8_t flags);
+uint32_t libusb20_tr_get_length(struct libusb20_transfer *xfer, uint16_t fr_index);
void libusb20_tr_set_length(struct libusb20_transfer *xfer, uint32_t length, uint16_t fr_index);
void libusb20_tr_set_priv_sc0(struct libusb20_transfer *xfer, void *sc0);
void libusb20_tr_set_priv_sc1(struct libusb20_transfer *xfer, void *sc1);