diff options
author | Richard Hughes <richard@hughsie.com> | 2023-02-01 14:33:27 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2023-02-01 16:24:02 +0000 |
commit | 4db790b78afc0642be95416cccba9c05b7ca5c5a (patch) | |
tree | 47e4caebdb110c869cd7f26398e0ebced7a90d22 /gusb/gusb-device-event-private.h | |
parent | e62f8f76d0bbf755ed5d90f44c10ae8f58605202 (diff) | |
download | gusb-4db790b78afc0642be95416cccba9c05b7ca5c5a.tar.gz |
Save the libusb error if libusb_submit_transfer() fails
If the return code is LIBUSB_ERROR_NO_DEVICE we want to record that.
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 5bd8616..4d4551a 100644 --- a/gusb/gusb-device-event-private.h +++ b/gusb/gusb-device-event-private.h @@ -19,6 +19,8 @@ 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); +void +_g_usb_device_event_set_rc(GUsbDeviceEvent *self, gint rc); gboolean _g_usb_device_event_load(GUsbDeviceEvent *self, JsonObject *json_object, GError **error); |