view src/config/config-parser.h @ 10952:30e2d65eb67a HEAD

config: Send client a services names that have more specific settings.
author Timo Sirainen <tss@iki.fi>
date Fri, 19 Mar 2010 17:23:56 +0200
parents c26002b81f57
children 02e0d6f0e1d4
line wrap: on
line source

#ifndef CONFIG_PARSER_H
#define CONFIG_PARSER_H

#define CONFIG_MODULE_DIR MODULEDIR"/settings"

struct config_module_parser {
	const struct setting_parser_info *root;
	struct setting_parser_context *parser;
	void *settings;
};
ARRAY_DEFINE_TYPE(config_module_parsers, struct config_module_parser *);

extern struct config_module_parser *config_module_parsers;
extern struct config_filter_context *config_filter;

int config_parse_file(const char *path, bool expand_values,
		      const char **error_r);

void config_parse_load_modules(void);

bool config_module_want_parser(const char *module,
			       const struct setting_parser_info *root);

#endif