Christian Thaeter
a95ae05ddb
some cosmetics
2008-09-06 12:41:22 +02:00
Christian Thaeter
fa54fb9bc2
add a diagnostic config dump function
2008-09-06 12:41:22 +02:00
Christian Thaeter
c3e2941eb8
some machinery for registering and retrieving defaults
...
* let config_setdefault() take a complete configline instead key:value pair
2008-09-06 12:40:32 +02:00
Christian Thaeter
d9f2b6d6fa
WIP: add config_lookup skeleton
2008-09-06 12:40:19 +02:00
Christian Thaeter
a51f61683f
add configitem and configentry to the build system
2008-09-06 12:38:48 +02:00
Christian Thaeter
1f8906a2d8
More mockup of the configitem bootstrap
...
* started low-level parser
* give the charsets for config keys some constants
2008-09-06 12:38:03 +02:00
Christian Thaeter
830482c46d
ooops, typo in the character list for config keys, missed 'wW'
2008-08-10 12:28:02 +02:00
Christian Thaeter
ff35734991
Fixup config to new rwlock SECTION macros
2008-08-10 12:28:02 +02:00
Christian Thaeter
3be0d38d73
report syntax error in value instead type error
2008-08-10 12:26:19 +02:00
Christian Thaeter
87c7fea4ac
allow only lowercase characters, digits, '_' and '.' in keys
2008-08-10 12:26:19 +02:00
Christian Thaeter
bb9f81c08d
fixed code to do whats specified, but needs refactoring
...
even in case of an configuration error the returned value is primed
with the default. The error condition needs still be cleared!
Broken defaults would be unnoticed in case of a double error!
2008-08-10 12:26:19 +02:00
Christian Thaeter
962bceec72
high level getter for 'number' type
...
WIP: doesn't register the default yet, no configfiles yet
just returning env overrides or defaults
2008-08-10 12:26:19 +02:00
Christian Thaeter
418231219a
cosmetics
2008-08-10 12:26:18 +02:00
Christian Thaeter
9a329e0340
basic config value retrieval, just env override, no configfiles yet
2008-08-10 12:26:18 +02:00
Christian Thaeter
116c0e8125
more nobug flags for config, add a rwlock for the config, init/destroy
2008-08-10 12:26:18 +02:00
Christian Thaeter
b691a9d7bb
Simple config init/destroy, beginning of a config-testsuite
2008-08-10 12:26:18 +02:00
Christian Thaeter
c8210708fa
skeleton for the config struct
2008-08-10 12:26:18 +02:00
Christian Thaeter
9444fb0267
use 'int' as return values rather than lumiera_err
2008-08-10 12:26:18 +02:00
Christian Thaeter
85e789742f
first skeleton for the config loader
2008-08-10 12:26:15 +02:00