parsers: Add filenames to struct parser
[petitboot] / discover / kboot-parser.c
index 5d5090b46003c509c666b10584b2a996eddcd9a4..c828e3072ba77d41c367bc68e3cb64391f387737 100644 (file)
@@ -157,4 +157,8 @@ static int kboot_parse(struct discover_context *dc)
        return rc;
 }
 
-define_parser(kboot, kboot_parse);
+struct parser __kboot_parser = {
+       .name           = "kboot",
+       .parse          = kboot_parse,
+       .filenames      = kboot_conf_files,
+};