diff options
author | Daniel Drake <dsd@gentoo.org> | 2008-03-08 12:48:35 +0000 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2008-03-08 12:58:32 +0000 |
commit | d21ebe47ce578c93cd8969be1c933d503e32e5d4 (patch) | |
tree | 00e7dc7471875ff433167607f28def629a6e7cca /libusb/libusbi.h | |
parent | fd6fb3cc093ad47271353a0e468d16547f991382 (diff) | |
download | libusb-d21ebe47ce578c93cd8969be1c933d503e32e5d4.tar.gz |
Rework URB API naming
Now refer to everything as "transfers" as consistent with the USB spec
libusb_transfer is now a kind of transfer handle. To reduce confusion
with libusb_bulk_transfer and libusb_control_transfer, those have been
renamed to libusb_{control,bulk}_transfer_request.
Diffstat (limited to 'libusb/libusbi.h')
-rw-r--r-- | libusb/libusbi.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libusb/libusbi.h b/libusb/libusbi.h index 4ff8e38..185e54d 100644 --- a/libusb/libusbi.h +++ b/libusb/libusbi.h @@ -157,16 +157,16 @@ struct libusb_dev_handle { int fd; }; -enum libusb_urb_type { - LIBUSB_URB_CONTROL, - LIBUSB_URB_BULK, +enum libusb_transfer_type { + LIBUSB_TRANSFER_CONTROL, + LIBUSB_TRANSFER_BULK, }; -#define LIBUSB_URBH_DATA_BELONGS_TO_USER (1<<0) -#define LIBUSB_URBH_SYNC_CANCELLED (1<<1) -#define LIBUSB_URBH_TIMED_OUT (1<<2) +#define USBI_TRANSFER_DATA_BELONGS_TO_USER (1<<0) +#define USBI_TRANSFER_SYNC_CANCELLED (1<<1) +#define USBI_TRANSFER_TIMED_OUT (1<<2) -struct libusb_urb_handle { +struct libusb_transfer { struct libusb_dev_handle *devh; struct usb_urb urb; struct list_head list; |