libusb-sys
libusb-sys copied to clipboard
Added missing libusb_fill_control / libusb_fill_bulk transfer / other fuctions
- Examples are rewritten to using 'MaybeUninit'
- added LIBUSB_SPEED_SUPER_PLUS const
- added libusb_control_setup struct
- added missing functions : libusb_set_log_cb(..), libusb_cpu_to_le16(..), libusb_control_transfer_get_data(), libusb_fill_control_setup(), libusb_fill_control_transfer(), libusb_fill_bulk_transfer(), libusb_fill_bulk_stream_transfer(), libusb_fill_interrupt_transfer(), libusb_fill_iso_transfer(), libusb_set_iso_packet_lengths()
@dcuddeback looks as absent since beginning 2020? That's a pity...
@blandger Thanks for sending this in and sorry for taking so long to reply. I'd love to add the remaining definitions to libusb-sys. The main reason they didn't previously exist is that I didn't have the time to write the necessary examples. Examples are compiled and linked with cargo test
, which is enough to catch typos in function names or functions that are missing in older versions of the library. I'd like new additions to be consistent with that approach.
In addition to that, this PR needs to focus on one thing. It's doing a lot more besides adding some missing definitions. All extraneous changes need to be separated.