all repos — openbox @ ce7aa15dd72e7262914de2e66b98a4f89e379462

openbox fork - make it a bit more like ryudo

openbox/config.c (raw)

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
30
31
32
33
34
35
36
37
#include "config.h"

#ifdef HAVE_STDIO_H
#  include <stdio.h>
#endif

static GSList *config = NULL;

/* provided by cparse.l */
void cparse_go(FILE *);


void config_startup()
{
}

void config_shutdown()
{
}

void config_parse()
{
    FILE *file;
    char *path;

    path = g_build_filename(g_get_home_dir(), ".openbox", "rc3", NULL);
    if ((file = fopen(path, "r")) != NULL) {
        cparse_go(file);
        fclose(file);
    }
}

gboolean config_set(char *name, ConfigValueType type, ConfigValue value)
{
    g_message("Setting %s\n", name);
    return TRUE;
}