]> git.corax.cc Git - toolbox/commit
include/conf: Add support for multiple configuration files
authorMatthias Kruk <m@m10k.eu>
Sat, 24 Jul 2021 04:21:27 +0000 (13:21 +0900)
committerMatthias Kruk <m@m10k.eu>
Sat, 24 Jul 2021 04:26:29 +0000 (13:26 +0900)
commitaabe344aa60cc1663cb45a0c2d84fb7f30466cfa
treee0e805fa457e055623f3a64f4a0f4ddd7a81079a
parentb0ce898a4b496be2c1ec93e3410c693ba82471c1
include/conf: Add support for multiple configuration files

The current conf implementation does not permit processes to use
more than one configuration file.
This commit modifies the conf module so that each process may use
an arbitrary number of configuration files by appending the name of
a config domain to the commandline of commands such as conf_get()
and conf_set(), falling back to "default" if the config domain was
omitted.
This commit further adds the conf_get_domains() method that may be
used to query the names of known configuration domains.
include/conf.sh