From 5e7c90eddd7ac2e4a3b05a7a5f6e29166edfa161 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 19 Mar 2013 14:00:53 +0800 Subject: discover: Add configuration methods We'd like to be able to download petitboot configurations from other sources (not just local files), but we'll need some way to indicate to the parsers that a chunk of config data is from a specific source. This change adds "configuration methods". At present, we have only one: CONF_METHOD_LOCAL_FILE. For any incoming configuration data, we only run parsers that have registered themselves with that configuration method. Signed-off-by: Jeremy Kerr --- discover/grub2-parser.c | 1 + 1 file changed, 1 insertion(+) (limited to 'discover/grub2-parser.c') diff --git a/discover/grub2-parser.c b/discover/grub2-parser.c index 4a1acf5..0589329 100644 --- a/discover/grub2-parser.c +++ b/discover/grub2-parser.c @@ -193,6 +193,7 @@ static int grub2_parse(struct discover_context *dc, char *buf, int len) static struct parser grub2_parser = { .name = "grub2", + .method = CONF_METHOD_LOCAL_FILE, .parse = grub2_parse, .filenames = grub2_conf_files, }; -- cgit v1.2.1