diff options
author | Richard Hughes <richard@hughsie.com> | 2022-10-26 09:10:31 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2022-10-26 09:20:05 +0100 |
commit | fa2556b755343dfd973b05ac101ba2c8b20645db (patch) | |
tree | 58214bc30b6fa109b0dd475209f0a11ebe01b3ca /gusb/gusb-context.c | |
parent | 45715f8cc484f04e36b9667834678edc43742306 (diff) | |
download | gusb-fa2556b755343dfd973b05ac101ba2c8b20645db.tar.gz |
Export g_usb_device_has_tag()
Diffstat (limited to 'gusb/gusb-context.c')
-rw-r--r-- | gusb/gusb-context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gusb/gusb-context.c b/gusb/gusb-context.c index 0a37b17..e7a49b4 100644 --- a/gusb/gusb-context.c +++ b/gusb/gusb-context.c @@ -425,7 +425,7 @@ g_usb_context_load_with_tag(GUsbContext *self, g_object_new(G_USB_TYPE_DEVICE, "context", self, NULL); if (!_g_usb_device_load(device, obj_tmp, error)) return FALSE; - if (tag != NULL && !_g_usb_device_has_tag(device, tag)) + if (tag != NULL && !g_usb_device_has_tag(device, tag)) continue; g_ptr_array_add(priv->devices, g_object_ref(device)); g_signal_emit(self, signals[DEVICE_ADDED_SIGNAL], 0, device); @@ -493,7 +493,7 @@ g_usb_context_save_with_tag(GUsbContext *self, } for (guint i = 0; i < priv->devices->len; i++) { GUsbDevice *device = g_ptr_array_index(priv->devices, i); - if (tag != NULL && !_g_usb_device_has_tag(device, tag)) + if (tag != NULL && !g_usb_device_has_tag(device, tag)) continue; if (!_g_usb_device_save(device, json_builder, error)) return FALSE; |