DEADSOFTWARE

menu: remove data field from menu_t
[flatwaifu.git] / src / config.h
index 1961ebeb55aabe7b9cc9bd8b5a1a87d648d68257..4290768f42ac8506314f96fa053f2b94e6667c55 100644 (file)
@@ -1,7 +1,6 @@
 /*
    Copyright (C) Prikol Software 1996-1997
    Copyright (C) Aleksey Volynskov 1996-1997
-   Copyright (C) <ARembo@gmail.com> 2011
 
    This file is part of the Doom2D:Rembo project.
 
    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 */