4 #include "types/types.h"
7 #include "device-handler.h"
9 #include "parser-utils.h"
11 struct parser __grub2_parser;
12 struct parser __kboot_parser;
13 struct parser __native_parser;
14 struct parser __yaboot_parser;
16 static const struct parser *const parsers[] = {
24 void iterate_parsers(struct discover_context *ctx)
27 unsigned int count = 0;
29 pb_log("trying parsers for %s\n", ctx->device_path);
31 for (i = 0; parsers[i]; i++) {
32 pb_log("\ttrying parser '%s'\n", parsers[i]->name);
33 count += parsers[i]->parse(ctx);
36 pb_log("\tno boot_options found\n");
39 void parser_init(void)