4 #include "pb-protocol/pb-protocol.h"
6 #include "device-handler.h"
9 extern struct parser kboot_parser;
11 /* array of parsers, ordered by priority */
12 static struct parser *parsers[] = {
17 void iterate_parsers(struct discover_context *ctx)
21 pb_log("trying parsers for %s\n", ctx->device_path);
23 for (i = 0; parsers[i]; i++) {
24 pb_log("\ttrying parser '%s'\n", parsers[i]->name);
25 /* just use a dummy device path for now */
26 if (parsers[i]->parse(ctx))
29 pb_log("\tno boot_options found\n");