diff options
author | Daniel Drake <dsd@gentoo.org> | 2008-03-25 16:24:30 +0000 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2008-03-30 22:17:34 +0100 |
commit | 211f80c9f2a4a58cd2bbf5b7751f45089c8961e7 (patch) | |
tree | ebeb072dd0d3c20883e956e2b727ffe55d019597 /libusb/sync.c | |
parent | b1ade6fca668d8aa156d5b5bf3a933f116144dc2 (diff) | |
download | libusb-211f80c9f2a4a58cd2bbf5b7751f45089c8961e7.tar.gz |
Isochronous endpoint I/O
Due to variable-sized structures, this involved changing allocation
mechanism. All transfers must now be allocated and freed through
libusb.
A synchronous function is missing, and I could do with writing a few
more helper functions to simplify things.
Diffstat (limited to 'libusb/sync.c')
-rw-r--r-- | libusb/sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/sync.c b/libusb/sync.c index 15be26d..c59122e 100644 --- a/libusb/sync.c +++ b/libusb/sync.c @@ -66,7 +66,7 @@ API_EXPORTED int libusb_control_transfer(libusb_device_handle *dev_handle, uint8_t bmRequestType, uint8_t bRequest, uint16_t wValue, uint16_t wIndex, unsigned char *data, uint16_t wLength, unsigned int timeout) { - struct libusb_transfer *transfer = libusb_alloc_transfer(); + struct libusb_transfer *transfer = libusb_alloc_transfer(0); unsigned char *buffer; int completed = 0; int r; @@ -134,7 +134,7 @@ static int do_sync_bulk_transfer(struct libusb_device_handle *dev_handle, unsigned char endpoint, unsigned char *buffer, int length, int *transferred, unsigned int timeout, unsigned char endpoint_type) { - struct libusb_transfer *transfer = libusb_alloc_transfer(); + struct libusb_transfer *transfer = libusb_alloc_transfer(0); int completed = 0; int r; |