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/kboot-parser.c | 1 + 1 file changed, 1 insertion(+) (limited to 'discover/kboot-parser.c') diff --git a/discover/kboot-parser.c b/discover/kboot-parser.c index 884658e..f097674 100644 --- a/discover/kboot-parser.c +++ b/discover/kboot-parser.c @@ -159,6 +159,7 @@ static int kboot_parse(struct discover_context *dc, char *buf, int len) static struct parser kboot_parser = { .name = "kboot", + .method = CONF_METHOD_LOCAL_FILE, .parse = kboot_parse, .filenames = kboot_conf_files, .resolve_resource = resolve_devpath_resource, -- cgit v1.2.1