projects
/
mikachu
/
openbox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
start the config system, add the config file parser
[mikachu/openbox.git]
/
openbox
/
config.h
1
#ifndef __config_h
2
#define __config_h
3
4
#include <glib.h>
5
6
typedef enum {
7
Config_String,
8
Config_Integer
9
} ConfigValueType;
10
11
typedef union {
12
char *string;
13
int integer;
14
} ConfigValue;
15
16
typedef struct {
17
char *name;
18
ConfigValueType type;
19
ConfigValue value;
20
} ConfigEntry;
21
22
void config_startup();
23
void config_shutdown();
24
25
gboolean config_set(char *name, ConfigValueType type, ConfigValue value);
26
27
void config_parse();
28
29
#endif