diff options
| author | Jakob Fries <jakob.fries@gmail.com> | 2008-01-16 22:14:06 +0000 |
|---|---|---|
| committer | Jakob Fries <jakob.fries@gmail.com> | 2008-01-16 22:14:06 +0000 |
| commit | 75c8b2e9a58e7052f484e43291baa2d9ae1a384a (patch) | |
| tree | 40e065a48cae7e840cc6e8f9fc9771c500910f4a /src/engine/e_config.h | |
| parent | a9c90d6ac082dbfea5590c54d5be7a71dd112b5d (diff) | |
| download | zcatch-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.h | 6 |
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" |