summaryrefslogtreecommitdiff
path: root/gusb/gusb-device-event.h
Commit message (Collapse)AuthorAgeFilesLines
* Save the libusb error if libusb_submit_transfer() failsRichard Hughes2023-02-011-0/+2
| | | | If the return code is LIBUSB_ERROR_NO_DEVICE we want to record that.
* Allow emulating failed eventsRichard Hughes2022-09-121-0/+2
| | | | | This is required to emulate devices that just reset (without completing the current transfer) when asked to reset.
* Save device events when requiredRichard Hughes2022-09-081-0/+24
This allows us to simulate an entire context of devices, simulating responses as if the hardware is connected. This allows building rich device-specific unit tests in programs like fwupd, without having to have the hardware attached.