blob: ab42e2f4d0128c1d162ebec74641884737542a43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/*
 * 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

#include "cgit.h"

typedef void (*config_file_value_fn)(const char *name, const char *value);

extern int config_file_parse(const char *filename, config_file_value_fn fn);

#endif // CGIT_CONFIG_H