about summary refs log tree commit diff
path: root/src/engine/e_config.h
diff options
context:
space:
mode:
authorJakob Fries <jakob.fries@gmail.com>2008-01-16 22:14:06 +0000
committerJakob Fries <jakob.fries@gmail.com>2008-01-16 22:14:06 +0000
commit75c8b2e9a58e7052f484e43291baa2d9ae1a384a (patch)
tree40e065a48cae7e840cc6e8f9fc9771c500910f4a /src/engine/e_config.h
parenta9c90d6ac082dbfea5590c54d5be7a71dd112b5d (diff)
downloadzcatch-75c8b2e9a58e7052f484e43291baa2d9ae1a384a.tar.gz
zcatch-75c8b2e9a58e7052f484e43291baa2d9ae1a384a.zip
Added first version of the console.
Diffstat (limited to 'src/engine/e_config.h')
-rw-r--r--src/engine/e_config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/e_config.h b/src/engine/e_config.h
index 63933660..b6fbc93d 100644
--- a/src/engine/e_config.h
+++ b/src/engine/e_config.h
@@ -17,11 +17,17 @@ typedef struct
 
 extern CONFIGURATION config;
 
+void config_init();
 void config_set(const char *line);
 void config_reset();
 void config_load(const char *filename);
 void config_save(const char *filename);
 
+typedef int (*config_int_getter)(CONFIGURATION *c);
+typedef const char *(*config_str_getter)(CONFIGURATION *c);
+typedef void (*config_int_setter)(CONFIGURATION *c, int val);
+typedef void (*config_str_setter)(CONFIGURATION *c, const char *str);
+
 #define MACRO_CONFIG_INT(name,def,min,max) int config_get_ ## name (CONFIGURATION *c);
 #define MACRO_CONFIG_STR(name,len,def) const char *config_get_ ## name (CONFIGURATION *c);
 #include "e_config_variables.h"