/*
* The interface to cgit's config file reader. A caller names a file and passes
* a callback that receives every name and value in it, in the order they
* appear.
*/#ifndef CGIT_CONFIG_H
#define CGIT_CONFIG_H
typedefvoid (*config_file_value_fn)(constchar *name, constchar *value);
/*
* Returns 0, or an errno value when filename could not be opened or read. A
* missing file is ordinary for some callers, so reporting one is left to them.
*/externintconfig_file_parse(constchar *filename, config_file_value_fn fn);
#endif// CGIT_CONFIG_H