diff src/config/config-parser.h @ 15087:8c003fe6f5a6

config: Support looking up config for multiple modules at the same time.
author Timo Sirainen <tss@iki.fi>
date Wed, 19 Sep 2012 15:33:10 +0300
parents 31387c9d5b88
children 680f59741e5e
line wrap: on
line diff
--- a/src/config/config-parser.h	Tue Sep 18 05:12:28 2012 +0300
+++ b/src/config/config-parser.h	Wed Sep 19 15:33:10 2012 +0300
@@ -18,13 +18,15 @@
 
 int config_parse_net(const char *value, struct ip_addr *ip_r,
 		     unsigned int *bits_r, const char **error_r);
-int config_parse_file(const char *path, bool expand_values, const char *module,
-		      const char **error_r);
+int config_parse_file(const char *path, bool expand_values,
+		      const char *const *modules, const char **error_r)
+	ATTR_NULL(3);
 
 void config_parse_load_modules(void);
 
 bool config_module_want_parser(struct config_module_parser *parsers,
-			       const char *module,
-			       const struct setting_parser_info *root);
+			       const char *const *modules,
+			       const struct setting_parser_info *root)
+	ATTR_NULL(2);
 
 #endif