commit | f0cce43f882d8b55d3abaacda110a4102d75de9a | [log] [tgz] |
---|---|---|
author | Chris Dickens <christopher.a.dickens@gmail.com> | Thu Apr 16 12:20:16 2020 -0700 |
committer | Chris Dickens <christopher.a.dickens@gmail.com> | Thu Apr 16 12:20:16 2020 -0700 |
tree | 85dd87e0f0766477c86176b0f51e13fd7becced4 | |
parent | 5c44ca955b3d7c41e6717514dc508f42faa2237b [diff] |
core: Fix definition and use of enum libusb_transfer_type Since the beginning of the libusb-1.0, the libusb_transfer_type enum had a 1:1 mapping to the endpoint transfer type (bits 1:0 of the endpoint descriptor's bmAttributes). This was broken with the addition of bulk stream support because the value of LIBUSB_TRANSFER_TYPE_BULK_STREAM does not map to a valid value for an endpoint's transfer type. Fix this by splitting the endpoint's transfer type for its descriptor and the library's transfer type for its logical transfers into different enumerations. None of the values are altered, so applications testing an endpoint descriptor's bmAttributes field against the libusb_transfer_type enum values will still work. Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb is a library for USB device access from Linux, macOS, Windows, OpenBSD/NetBSD, Haiku and Solaris userspace. It is written in C (Haiku backend in C++) and licensed under the GNU Lesser General Public License version 2.1 or, at your option, any later version (see COPYING).
libusb is abstracted internally in such a way that it can hopefully be ported to other operating systems. Please see the PORTING file for more information.
libusb homepage: http://libusb.info/
Developers will wish to consult the API documentation: http://api.libusb.info
Use the mailing list for questions, comments, etc: http://mailing-list.libusb.info
(Please use the mailing list rather than mailing developers directly)