summaryrefslogtreecommitdiff
path: root/gusb/gusb-device-event-private.h
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2022-09-10 14:00:19 +0100
committerRichard Hughes <richard@hughsie.com>2022-09-12 11:22:40 +0100
commit1affb32b667d1d16ab6eafb3303d72cb07774c71 (patch)
tree87500da0e0362e957f66cbb13fae13b5752a755a /gusb/gusb-device-event-private.h
parent0f605ed23f2f9ea5c2ac28cc772f1e781ffa08ba (diff)
downloadgusb-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.h2
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);