test/parser: Add parser_is_unique
authorGeoff Levand <geoff@infradead.org>
Thu, 2 Aug 2018 17:29:35 +0000 (17:29 +0000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 7 Aug 2018 01:30:36 +0000 (11:30 +1000)
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
test/parser/utils.c

index c6d1a170a9b3596daab2c59fbbc49aa7a034530a..d8499a47689ab2115065a005aca6d5b957755603 100644 (file)
@@ -371,6 +371,18 @@ err_cleanup:
        return -1;
 }
 
        return -1;
 }
 
+bool parser_is_unique(struct discover_context *ctx, struct discover_device *dev,
+       const char *filename, struct list *found_list)
+{
+       (void)ctx;
+       (void)dev;
+       (void)filename;
+       (void)found_list;
+
+       /* Just let the parser process everything. */
+       return true;
+}
+
 struct load_url_result *load_url_async(void *ctx, struct pb_url *url,
                load_url_complete async_cb, void *async_data,
                waiter_cb stdout_cb, void *stdout_data)
 struct load_url_result *load_url_async(void *ctx, struct pb_url *url,
                load_url_complete async_cb, void *async_data,
                waiter_cb stdout_cb, void *stdout_data)