conf: add config-file parser
authorDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 17 Jul 2012 20:47:15 +0000 (22:47 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Tue, 17 Jul 2012 20:47:15 +0000 (22:47 +0200)
commitdd68e97016f89207e732d21daf0a7287d4245047
tree7fd9d8dd3951bb2c99b53eb2db6d3d8f3e18f065
parent3cadb1d349768b5bc251079ba3c2c2a19c7e0c42
conf: add config-file parser

This again refactors the whole config subsystem but this should be the
last time. We now have generic parsers for booleans and strings and don't
leak any memory, anymore. Furthermore, this adds a config-file parser so
common options can now be placed into /etc/kmscon.conf or ~/.kmscon.conf.

The config files parse the same arguments as the command-line and the
command-line always has precedence even though it is parsed first.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/conf.c
src/conf.h
src/main.c
src/pty.c