8da53f8970adb1297217ea632e7bff2076232d4b
[citadel.git] / citadel / config.h
1 /*
2  * Copyright (c) 1987-2015 by the citadel.org team
3  *
4  * This program is open source software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 3.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10  * GNU General Public License for more details.
11  */
12
13 #include "serv_extensions.h"
14 #include "citadel_dirs.h"
15
16 #define CtdlGetConfigInt(x)     atoi(CtdlGetConfigStr(x))
17 #define CtdlGetConfigLong(x)    atol(CtdlGetConfigStr(x))
18
19 void initialize_config_system(void);
20 void shutdown_config_system(void);
21 void put_config(void);
22 void CtdlSetConfigStr(char *, char *);
23 char *CtdlGetConfigStr(char *);
24 void CtdlSetConfigInt(char *key, int value);
25 void CtdlSetConfigLong(char *key, long value);
26
27 char *CtdlGetSysConfig(char *sysconfname);
28 void CtdlPutSysConfig(char *sysconfname, char *sysconfdata);
29 void validate_config(void);