parsers: Add filenames to struct parser
[petitboot] / discover / grub2-parser.c
index fa7b9507348a217d0576adfcd3c33d9fdffc839c..6ef5945b11c999fe87bfa813f821b0453d5d6477 100644 (file)
@@ -188,4 +188,8 @@ static int grub2_parse(struct discover_context *dc)
        return rc;
 }
 
-define_parser(grub2, grub2_parse);
+struct parser __grub2_parser = {
+       .name           = "grub2",
+       .parse          = grub2_parse,
+       .filenames      = grub2_conf_files,
+};