DEADSOFTWARE

4290768f42ac8506314f96fa053f2b94e6667c55
[flatwaifu.git] / src / config.h
1 /*
2 Copyright (C) Prikol Software 1996-1997
3 Copyright (C) Aleksey Volynskov 1996-1997
5 This file is part of the Doom2D:Rembo project.
7 Doom2D:Rembo is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License version 2 as
9 published by the Free Software Foundation.
11 Doom2D:Rembo is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, see <http://www.gnu.org/licenses/> or
18 write to the Free Software Foundation, Inc.,
19 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
22 #ifndef CONFIG_H_INCLUDED
23 #define CONFIG_H_INCLUDED
25 #include "glob.h"
26 #include "system.h"
28 const cfg_t *CFG_find_entry (const char *key, const cfg_t *cfg);
29 int CFG_update_key (const char *key, const char *value, const cfg_t *cfg);
31 int CFG_open_iterator (const char *name);
32 int CFG_scan_iterator (char *key, int keylen, char *value, int valuelen);
33 void CFG_close_iterator (void);
35 int CFG_read_config (const char *name, int n, const cfg_t **cfg);
36 int CFG_update_config (const char *old, const char *new, int n, const cfg_t **cfg, const char *msg);
38 #endif /* CONFIG_H_INCLUDED */