parsers: Add filenames to struct parser
[petitboot] / discover / yaboot-parser.c
index b287817a6727c1d0838661675cf70209430121ce..0477d38ee6e7715e00d70c19c2aa4ff19edf3f4d 100644 (file)
@@ -320,4 +320,8 @@ static int yaboot_parse(struct discover_context *dc)
        return rc;
 }
 
-define_parser(yaboot, yaboot_parse);
+struct parser __yaboot_parser = {
+       .name           = "yaboot",
+       .parse          = yaboot_parse,
+       .filenames      = yaboot_conf_files,
+};