diff options
author | Richard Hughes <richard@hughsie.com> | 2022-09-05 20:50:06 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2022-09-08 09:06:56 +0100 |
commit | 1c778b7013582bab13a66467e12c7573f615cc8c (patch) | |
tree | 953159ce969761acb608166d0a5c02bde618882d /gusb/gusb-device.h | |
parent | 4eca7b72db7f5c921927ca5b7a16a8d05b093861 (diff) | |
download | gusb-1c778b7013582bab13a66467e12c7573f615cc8c.tar.gz |
Save device events when required
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.
Diffstat (limited to 'gusb/gusb-device.h')
-rw-r--r-- | gusb/gusb-device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gusb/gusb-device.h b/gusb/gusb-device.h index 39d778c..4488653 100644 --- a/gusb/gusb-device.h +++ b/gusb/gusb-device.h @@ -195,6 +195,9 @@ GPtrArray * g_usb_device_get_interfaces(GUsbDevice *self, GError **error); GPtrArray * +g_usb_device_get_events(GUsbDevice *self); + +GPtrArray * g_usb_device_get_bos_descriptors(GUsbDevice *self, GError **error); GUsbBosDescriptor * g_usb_device_get_bos_descriptor(GUsbDevice *self, guint8 capability, GError **error); |