| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
If we load new emulation data we have to do horrible tricks in the caller to
avoid handling the remove event when loading new event data.
Make the caller (fwupd) much simpler by emitting the correct signals.
Also add a ::device-changed signal that we can use to reload the device events.
|
| |
|
|
|
|
|
| |
Removed devices should not be saved when trying dump events per update
phase.
|
|
|
|
|
| |
This would allow us, for example, to only load devices in bootloader or runtime
phases.
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This allows us to write tests that mock up entire devices.
|
| |
|
| |
|
|
|
|
|
| |
This frees up mental energy when reviewing patches and is something I
should have done a long time ago.
|
| |
|
|
|
|
|
| |
The end year is legally and functionally redundant, and more importantly
causes cherry-pick conflicts when trying to maintain old branches.
|
| |
|
| |
|
| |
|
|
|
|
| |
This allows us to auto-open devices as they are hotplugged.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
The libusb_set_pollfd_notifiers() function will only work on Linux and we can
use a thread to do exactly the same thing in a cross platform way with a lot
less code.
|
|
|
|
| |
Signed-off-by: Richard Hughes <richard@hughsie.com>
|
|
|
|
|
|
|
|
|
|
| |
As a result, g_usb_source_{new,destroy} have been moved to a private
header, and are called from the get_source and finalize methods of
GUsbContext.
Note that the GUsbSource is lazy allocated and only created when
g_usb_context_get_source is called for the first time for a particular
GUsbContext.
|
|
|
|
|
|
| |
This allows us to later add signals without changing the ABI.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
|
|
So that we can include our headers from other headers in the form of:
include <gusb/gusb-foo.h>
And still have a working local build.
|