diff options
author | Richard Hughes <richard@hughsie.com> | 2022-09-10 14:00:19 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2022-09-12 11:22:40 +0100 |
commit | 1affb32b667d1d16ab6eafb3303d72cb07774c71 (patch) | |
tree | 87500da0e0362e957f66cbb13fae13b5752a755a /gusb/gusb-device-event-private.h | |
parent | 0f605ed23f2f9ea5c2ac28cc772f1e781ffa08ba (diff) | |
download | gusb-1affb32b667d1d16ab6eafb3303d72cb07774c71.tar.gz |
Allow emulating failed events
This is required to emulate devices that just reset (without completing the
current transfer) when asked to reset.
Diffstat (limited to 'gusb/gusb-device-event-private.h')
-rw-r--r-- | gusb/gusb-device-event-private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gusb/gusb-device-event-private.h b/gusb/gusb-device-event-private.h index 0e78cff..5bd8616 100644 --- a/gusb/gusb-device-event-private.h +++ b/gusb/gusb-device-event-private.h @@ -17,6 +17,8 @@ GUsbDeviceEvent * _g_usb_device_event_new(const gchar *id); void _g_usb_device_event_set_bytes_raw(GUsbDeviceEvent *self, gconstpointer buf, gsize bufsz); +void +_g_usb_device_event_set_status(GUsbDeviceEvent *self, gint status); gboolean _g_usb_device_event_load(GUsbDeviceEvent *self, JsonObject *json_object, GError **error); |