wip: Add config_parser.c which will provide a nice means to specify config variables...
authorDana Jansens <danakj@orodu.net>
Sat, 6 Aug 2011 01:55:00 +0000 (21:55 -0400)
committerDana Jansens <danakj@orodu.net>
Mon, 8 Aug 2011 19:14:05 +0000 (15:14 -0400)
commit26d530e41a20285fd5184253a3a8cf29debbb2f9
treef0f56e935e4549cb1fe359d6624a899d3512a815
parent495ce3edfb9e13065421ddddbf93f86008f701fe
wip: Add config_parser.c which will provide a nice means to specify config variables and where they are in the config file.

- Has functions to register variables of different types.
- When it reads from the file it stores it in an ObConfigValue, but
  puts the raw value directly into a variable of the right type so there
  is no redirection needed to access config values.

TODO:
- move the config file loading shit into config_parser.c
- have config.c just register the various config vars with the parser.
- some more complex things like Fonts will need more work.
- remove the "#if 0" stuff in config_parser.c
  - this is an example of the direction I'm trying to go in config.c eventually
Makefile.am
openbox/config_parser.c [new file with mode: 0644]
openbox/config_parser.h [new file with mode: 0644]