diff options
author | Richard Hughes <richard@hughsie.com> | 2023-02-02 16:43:16 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2023-02-03 12:30:17 +0000 |
commit | 3124faf28e23009bd304dbd66cd32227c4142a9b (patch) | |
tree | 746eda7399bea4a62de465fff0b016e1ab0b36ce /gusb/gusb-device-private.h | |
parent | 4db790b78afc0642be95416cccba9c05b7ca5c5a (diff) | |
download | gusb-3124faf28e23009bd304dbd66cd32227c4142a9b.tar.gz |
Do not emit spurious ::device-removed events when emulating
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.
Diffstat (limited to 'gusb/gusb-device-private.h')
-rw-r--r-- | gusb/gusb-device-private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gusb/gusb-device-private.h b/gusb/gusb-device-private.h index 70218b2..d1cd376 100644 --- a/gusb/gusb-device-private.h +++ b/gusb/gusb-device-private.h @@ -7,6 +7,7 @@ #pragma once +#include <gusb/gusb-device-event.h> #include <gusb/gusb-device.h> G_BEGIN_DECLS @@ -17,6 +18,8 @@ gboolean _g_usb_device_load(GUsbDevice *self, JsonObject *json_object, GError **error); gboolean _g_usb_device_save(GUsbDevice *self, JsonBuilder *json_builder, GError **error); +void +_g_usb_device_add_event(GUsbDevice *self, GUsbDeviceEvent *event); libusb_device * _g_usb_device_get_device(GUsbDevice *self); |