From 1e8528ad5b66b4a70bd76681dc1319614f4342f8 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Fri, 9 Sep 2022 12:54:01 +0100 Subject: Ignore usb.ids classes, subclasses and protocols --- gusb/gusb-context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gusb/gusb-context.c b/gusb/gusb-context.c index 5d1fea8..14816a1 100644 --- a/gusb/gusb-context.c +++ b/gusb/gusb-context.c @@ -1023,6 +1023,10 @@ g_usb_context_load_usb_ids(GUsbContext *self, GError **error) if (lines[i][0] == '\0') continue; + /* the list of known device classes, subclasses and protocols appeared */ + if (g_str_has_prefix(lines[i], "C 00")) + break; + if (lines[i][0] != '\t') { lines[i][4] = '\0'; -- cgit v1.2.1