about summary refs log tree commit diff
path: root/src/engine/e_config.h
diff options
context:
space:
mode:
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"