X-Git-Url: https://deadsoftware.ru/gitweb?a=blobdiff_plain;f=src%2Fconfig.h;h=4290768f42ac8506314f96fa053f2b94e6667c55;hb=21e27adcd50196e94141390f96c8d4a089ccde08;hp=1961ebeb55aabe7b9cc9bd8b5a1a87d648d68257;hpb=a2115940e7643dcb1b87286f3d19fe95f7b79bd3;p=flatwaifu.git diff --git a/src/config.h b/src/config.h index 1961ebe..4290768 100644 --- a/src/config.h +++ b/src/config.h @@ -1,7 +1,6 @@ /* Copyright (C) Prikol Software 1996-1997 Copyright (C) Aleksey Volynskov 1996-1997 - Copyright (C) 2011 This file is part of the Doom2D:Rembo project. @@ -20,11 +19,20 @@ 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ -// Configuration +#ifndef CONFIG_H_INCLUDED +#define CONFIG_H_INCLUDED -void CFG_args(int argc, char *argv[]); -void CFG_load(void); -void CFG_save(void); +#include "glob.h" +#include "system.h" -extern char cfg_file[]; +const cfg_t *CFG_find_entry (const char *key, const cfg_t *cfg); +int CFG_update_key (const char *key, const char *value, const cfg_t *cfg); +int CFG_open_iterator (const char *name); +int CFG_scan_iterator (char *key, int keylen, char *value, int valuelen); +void CFG_close_iterator (void); + +int CFG_read_config (const char *name, int n, const cfg_t **cfg); +int CFG_update_config (const char *old, const char *new, int n, const cfg_t **cfg, const char *msg); + +#endif /* CONFIG_H_INCLUDED */