summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Release version 0.4.40.4.4Richard Hughes2023-01-302-0/+26
|
* Reduce the debugging level when emulating firmwareRichard Hughes2023-01-275-4/+20
|
* trivial: Export the gusb-device-event.h headerRichard Hughes2023-01-261-0/+1
|
* Add g_usb_device_clear_events() for future useRichard Hughes2023-01-253-0/+19
|
* Emit remove devices with matching tags when loading contextsRichard Hughes2023-01-241-3/+12
| | | | | If a program, say fwupd, has references to existing devices it is probably not expected for the physical backing device to just vanish.
* Add g_usb_device_get_tags() for future useRichard Hughes2023-01-243-0/+21
|
* Add g_usb_device_is_emulated() for future useRichard Hughes2023-01-243-0/+20
|
* Add g_usb_device_remove_tag() for future useRichard Hughes2023-01-234-0/+41
|
* trivial: Fix -Wdeclaration-after-statementRichard Hughes2023-01-231-3/+2
|
* Save removed devices in JSON dump only when requestedFrédéric Danis2023-01-192-4/+7
| | | | | Removed devices should not be saved when trying dump events per update phase.
* Load GUsb endpoints when loading interfaceFrédéric Danis2023-01-191-0/+15
|
* Fix _g_usb_interface_save without endpointsFrédéric Danis2023-01-191-1/+1
| | | | | when the g_usb_interface is created from _g_usb_device_load(), self->endpoints may not be initialized.
* Fix g_usb_interface_finalize without endpointsFrédéric Danis2023-01-111-1/+2
|
* trivial: post release version bumpRichard Hughes2022-12-202-7/+5
|
* Release version 0.4.30.4.3Richard Hughes2022-12-202-0/+17
|
* trivial: Be less verboseRichard Hughes2022-12-091-3/+1
|
* Work around a libusb1 bug which causes devices to appear in the list twiceRichard Hughes2022-12-091-0/+6
|
* trivial: Fix up a gtk-doc commentRichard Hughes2022-10-261-1/+1
|
* Export g_usb_device_has_tag()Richard Hughes2022-10-265-6/+23
|
* trivial: post release version bumpRichard Hughes2022-10-182-5/+4
|
* Release version 0.4.20.4.2Richard Hughes2022-10-183-395/+186
|
* Do not call the hotplug callback with the mutex heldRichard Hughes2022-10-171-6/+22
| | | | | This fixes a regression introduced in 0ff5cca6 which causes a rare deadlock in fwupd.
* Revert "Use GRecMutex to avoid a single-threaded lockup"Richard Hughes2022-10-171-14/+5
| | | | | | This reverts commit cfb40102b0985d52cbd5d9348dedd1a4cc06b10c -- it's the wrong fix as the hotplug callback is being called by two different threads; even a recursive mutex isn't going to save us there.
* Close the GUsbDevice objects in gusbcmdRichard Hughes2022-10-171-0/+5
|
* Use GRecMutex to avoid a single-threaded lockupRichard Hughes2022-10-121-5/+14
| | | | | | | | | If we call libusb_get_bos_descriptor() in the hotplug device-add handler then we eventually call libusb_handle_events_completed() which can run handle_events -- which might emit devices. Using a mutex that's safe for recursing prevents the deadlock. This fixes half the problem when getting descriptors on deeply nested USB hubs.
* trivial: post release version bumpRichard Hughes2022-10-012-5/+5
|
* Release version 0.4.10.4.1Richard Hughes2022-10-012-1/+12
|
* Port from gtkdoc to gi-docgenRichard Hughes2022-09-3012-139/+98
| | | | Fixes https://github.com/hughsie/libgusb/issues/79
* Allow loading and saving only devices with specific tagsRichard Hughes2022-09-133-0/+60
| | | | | This would allow us, for example, to only load devices in bootloader or runtime phases.
* trivial: Don't return -1 for failure for a gbooleanRichard Hughes2022-09-131-1/+1
|
* trivial: Fix up clang-format issueRichard Hughes2022-09-131-1/+1
|
* Allow adding tags to the JSON device eventRichard Hughes2022-09-134-0/+76
| | | | This allows us to see which phase of the emulation should be used.
* Include the created time in the JSON eventRichard Hughes2022-09-131-0/+10
|
* trivial: Remove existing devices when loading a contextRichard Hughes2022-09-131-0/+4
|
* Include removed devices in the JSON dumpRichard Hughes2022-09-131-0/+13
| | | | This is needed to emulate devices with bootloader modes.
* trivial: Update to non-deprecated macos-12 CI targetRichard Hughes2022-09-121-2/+2
|
* trivial: Fix example downstream spec fileRichard Hughes2022-09-121-0/+1
|
* trivial: Fix some docs warnings when compiling the tarballRichard Hughes2022-09-123-4/+5
|
* trivial: post release version bumpRichard Hughes2022-09-122-4/+4
|
* Release version 0.4.00.4.0Richard Hughes2022-09-121-0/+18
|
* Allow emulating failed eventsRichard Hughes2022-09-125-0/+80
| | | | | This is required to emulate devices that just reset (without completing the current transfer) when asked to reset.
* Do not copy event data when not-requiredRichard Hughes2022-09-101-3/+48
| | | | | This will prevent crashes if the caller is casting from a const buffer to a mutable buffer.
* trivial: Be more careful with buffers in case the usb.ids file format changesRichard Hughes2022-09-091-1/+4
|
* Ignore usb.ids classes, subclasses and protocolsRichard Hughes2022-09-091-0/+4
|
* Fix loading events using _g_usb_device_event_load()Richard Hughes2022-09-091-1/+1
|
* trivial: Ignore -Wgnu-variable-sized-type-not-at-endRichard Hughes2022-09-091-0/+1
| | | | There's literally nothing we can do about it.
* trivial: Fix two -Wunused-variable warningsRichard Hughes2022-09-091-0/+4
|
* trivial: Fix the ColorMunki self testsRichard Hughes2022-09-091-4/+3
| | | | PVS: Converting type 'gssize' to type 'gboolean' can lead to a loss of high-order bits.
* Save device events when requiredRichard Hughes2022-09-0810-7/+816
| | | | | | 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.
* trivial: Update the ColorHug test to reflect realityRichard Hughes2022-09-061-1/+1
|