]> git.lizzy.rs Git - dragonblocks_alpha.git/blob - src/config.h
Add configuration files for client and server
[dragonblocks_alpha.git] / src / config.h
1 #ifndef _CONFIG_H_
2 #define _CONFIG_H_
3
4 #include <stddef.h>
5
6 typedef enum
7 {
8         CT_STRING,
9         CT_INT,
10         CT_UINT,
11         CT_FLOAT,
12         CT_BOOL,
13 } ConfigType;
14
15 typedef struct
16 {
17         ConfigType type;
18         char *key;
19         void *value;
20 } ConfigEntry;
21
22 void config_read(char *path, ConfigEntry *entries, size_t num_entries);
23
24 #endif