summaryrefslogtreecommitdiffstats
path: root/lib/libusb/libusb10.h
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-11-20 08:57:25 +0000
committerthompsa <thompsa@FreeBSD.org>2009-11-20 08:57:25 +0000
commitc3a431d7190b3a22732569a0a5eb670c4472448c (patch)
treee74fa51115d91a6aafc7339f0f35e68ec522dd82 /lib/libusb/libusb10.h
parentb65660166a38e0c0415e1c20a6958b52801f299b (diff)
downloadFreeBSD-src-c3a431d7190b3a22732569a0a5eb670c4472448c.zip
FreeBSD-src-c3a431d7190b3a22732569a0a5eb670c4472448c.tar.gz
Sync to P4
- fix a transfer cancelling bug/segfault [1] - correct a return code in the transfer cancel function. - add new API function, libusb20_tr_bulk_intr_sync(). Submitted by: HPS Reported by: Robert Jenssen [1]
Diffstat (limited to 'lib/libusb/libusb10.h')
-rw-r--r--lib/libusb/libusb10.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libusb/libusb10.h b/lib/libusb/libusb10.h
index 338c2aa..d2a2bd7 100644
--- a/lib/libusb/libusb10.h
+++ b/lib/libusb/libusb10.h
@@ -65,7 +65,9 @@ struct libusb_super_transfer {
uint8_t *curr_data;
uint32_t rem_len;
uint32_t last_len;
- uint8_t flags;
+ uint8_t state;
+#define LIBUSB_SUPER_XFER_ST_NONE 0
+#define LIBUSB_SUPER_XFER_ST_PEND 1
};
struct libusb_context {
OpenPOWER on IntegriCloud