From 75c8b2e9a58e7052f484e43291baa2d9ae1a384a Mon Sep 17 00:00:00 2001 From: Jakob Fries Date: Wed, 16 Jan 2008 22:14:06 +0000 Subject: Added first version of the console. --- src/engine/e_config.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/engine/e_config.h') 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" -- cgit 1.4.1