summaryrefslogtreecommitdiff
path: root/README.git
diff options
context:
space:
mode:
authorChris Dickens <christopher.a.dickens@gmail.com>2020-04-16 12:20:16 -0700
committerChris Dickens <christopher.a.dickens@gmail.com>2020-04-16 12:20:16 -0700
commitf0cce43f882d8b55d3abaacda110a4102d75de9a (patch)
tree85dd87e0f0766477c86176b0f51e13fd7becced4 /README.git
parent5c44ca955b3d7c41e6717514dc508f42faa2237b (diff)
downloadlibusb-f0cce43f882d8b55d3abaacda110a4102d75de9a.tar.gz
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>
Diffstat (limited to 'README.git')
0 files changed, 0 insertions, 0 deletions