summaryrefslogtreecommitdiffstats
path: root/discover/kboot-parser.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-03-12 15:30:41 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-04-29 13:55:50 +1000
commit39e06f5cfda0ed0c1eeb7a7604a3d05dda81ccf1 (patch)
tree559fa0f46f0ececa5db613c23d379083d8781624 /discover/kboot-parser.c
parent6276a57e76cf22aac639236d4782b56e2e5b9d5e (diff)
downloadtalos-petitboot-39e06f5cfda0ed0c1eeb7a7604a3d05dda81ccf1.zip
talos-petitboot-39e06f5cfda0ed0c1eeb7a7604a3d05dda81ccf1.tar.gz
parsers: Add filenames to struct parser
In preparation of moving file handling to the discover core (rather than the parsers), include the conf file names in struct parser. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/kboot-parser.c')
-rw-r--r--discover/kboot-parser.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c
index 5d5090b..c828e30 100644
--- a/discover/kboot-parser.c
+++ b/discover/kboot-parser.c
@@ -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,
+};
OpenPOWER on IntegriCloud