diff options
author | Richard Hughes <richard@hughsie.com> | 2022-09-13 11:34:36 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2022-09-13 11:42:35 +0100 |
commit | 1808ffcc0f43aab4d712970ca68329bf8aa730d9 (patch) | |
tree | ffc85af0ed9ba6fe761ac7b22d70ac7d89324ce4 /gusb/gusb-context.h | |
parent | 0d8148627f83fbe8a6deee828c6a4b5ccee3279a (diff) | |
download | gusb-1808ffcc0f43aab4d712970ca68329bf8aa730d9.tar.gz |
Allow loading and saving only devices with specific tags
This would allow us, for example, to only load devices in bootloader or runtime
phases.
Diffstat (limited to 'gusb/gusb-context.h')
-rw-r--r-- | gusb/gusb-context.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gusb/gusb-context.h b/gusb/gusb-context.h index 3352ce7..f633520 100644 --- a/gusb/gusb-context.h +++ b/gusb/gusb-context.h @@ -74,7 +74,17 @@ g_usb_context_enumerate(GUsbContext *self); gboolean g_usb_context_load(GUsbContext *self, JsonObject *json_object, GError **error); gboolean +g_usb_context_load_with_tag(GUsbContext *self, + JsonObject *json_object, + const gchar *tag, + GError **error); +gboolean g_usb_context_save(GUsbContext *self, JsonBuilder *json_builder, GError **error); +gboolean +g_usb_context_save_with_tag(GUsbContext *self, + JsonBuilder *json_builder, + const gchar *tag, + GError **error); void g_usb_context_set_debug(GUsbContext *self, GLogLevelFlags flags); |