blob: 9797f9e40b72bb9704a2c7bcad517d358b2304ab (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#ifndef __config_h
#define __config_h
#include <glib.h>
typedef enum {
Config_String,
Config_Integer
} ConfigValueType;
typedef union {
char *string;
int integer;
} ConfigValue;
typedef struct {
char *name;
ConfigValueType type;
ConfigValue value;
} ConfigEntry;
void config_startup();
void config_shutdown();
gboolean config_set(char *name, ConfigValueType type, ConfigValue value);
void config_parse();
#endif
|