summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2008-03-25 16:24:30 +0000
committerDaniel Drake <dsd@gentoo.org>2008-03-30 22:17:34 +0100
commit211f80c9f2a4a58cd2bbf5b7751f45089c8961e7 (patch)
treeebeb072dd0d3c20883e956e2b727ffe55d019597 /examples
parentb1ade6fca668d8aa156d5b5bf3a933f116144dc2 (diff)
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 'examples')
-rw-r--r--examples/dpfp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/dpfp.c b/examples/dpfp.c
index 5d50598..00aaa73 100644
--- a/examples/dpfp.c
+++ b/examples/dpfp.c
@@ -172,7 +172,7 @@ static int set_mode_async(unsigned char data)
if (!buf)
return -ENOMEM;
- transfer = libusb_alloc_transfer();
+ transfer = libusb_alloc_transfer(0);
if (!transfer) {
free(buf);
return -ENOMEM;
@@ -398,11 +398,11 @@ static int do_init(void)
static int alloc_transfers(void)
{
- img_transfer = libusb_alloc_transfer();
+ img_transfer = libusb_alloc_transfer(0);
if (!img_transfer)
return -ENOMEM;
- irq_transfer = libusb_alloc_transfer();
+ irq_transfer = libusb_alloc_transfer(0);
if (!irq_transfer)
return -ENOMEM;