view src/config/config-parser.h @ 10704:c26002b81f57 HEAD

config: $setting as value returns the setting's current value.
author Timo Sirainen <tss@iki.fi>
date Sat, 13 Feb 2010 08:07:31 +0200
parents 4dc080520769
children 30e2d65eb67a
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);

#endif