/* * * File : config_parser.c * * Author : Zurcher Jeremy * * Date : * * Purpose : * */ #ifndef CONFIG_PARSER_H #define CONFIG_PARSER_H #define BUFFLEN 64 /** * callback * @param token the parsed token * @param incomplete set to 1 if the token is too big for the buffer */ typedef int(*config_callback)(char *token, int incomplete); /** * read_config * * @param filename the path to the configuration file to parse * @param callback function called with each token */ int parse_config(char *filename, config_callback callabck); #endif /* CONFIG_PARSER_H */