From 24236269ce5126dfa60af60a925da503a7338c4d Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Sun, 18 Mar 2012 16:20:38 -0700 Subject: Add new member get_pair to conf parser context To allow parsers more control over finding paramerter pairs add a new member get_pair to the parser struct conf_context. Initialize get_pair=conf_get_pair_equal for existing parsers. Signed-off-by: Geoff Levand --- discover/parser-conf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'discover/parser-conf.h') diff --git a/discover/parser-conf.h b/discover/parser-conf.h index 6aa0701..efeb4f3 100644 --- a/discover/parser-conf.h +++ b/discover/parser-conf.h @@ -33,6 +33,8 @@ struct conf_context { struct conf_global_option *global_options; const char *const *conf_files; + char *(*get_pair)(struct conf_context *conf, char *str, char **name_out, + char **value_out, char terminator); void (*process_pair)(struct conf_context *conf, const char *name, char *value); void (*finish)(struct conf_context *conf); -- cgit v1.2.1