Initial import (again)
[srvx.git] / src / conf.h
1 /* conf.h - Config file reader
2  * Copyright 2000-2004 srvx Development Team
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.  Important limitations are
8  * listed in the COPYING file that accompanies this software.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, email srvx-maintainers@srvx.net.
17  */
18
19 #ifndef CONF_H
20 #define CONF_H
21
22 #include "recdb.h"
23
24 int conf_read(const char *conf_file_name);
25 void conf_close(void);
26
27 typedef void (*conf_reload_func)(void);
28 void conf_register_reload(conf_reload_func crf);
29 void conf_call_reload_funcs(void);
30
31 void *conf_get_data(const char *full_path, enum recdb_type type);
32 struct record_data *conf_get_node(const char *full_path);
33 const char *conf_enum_root(dict_iterator_f it, void *extra);
34
35 #endif