DEADSOFTWARE

update copyrights
[flatwaifu.git] / src / config.h
1 /* Copyright (C) 2020 SovietPony
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, version 3 of the License ONLY.
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 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
16 #ifndef CONFIG_H_INCLUDED
17 #define CONFIG_H_INCLUDED
19 #include "glob.h"
20 #include "system.h"
22 const cfg_t *CFG_find_entry (const char *key, const cfg_t *cfg);
23 int CFG_update_key (const char *key, const char *value, const cfg_t *cfg);
25 int CFG_open_iterator (const char *name);
26 int CFG_scan_iterator (char *key, int keylen, char *value, int valuelen);
27 void CFG_close_iterator (void);
29 int CFG_read_config (const char *name, int n, const cfg_t **cfg);
30 int CFG_update_config (const char *old, const char *new, int n, const cfg_t **cfg, const char *msg);
32 #endif /* CONFIG_H_INCLUDED */