config.c: Export store_str_variable_value_to_array() Make it possible to store string values into array database even from outside of config.c. Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
config.c: Handle multiple variables correcly If we happen to have multiple variables in the string we are handling, we must continue handling the string always at the end of the previous replaced variable. Otherwise we may end up skipping the beginning of the next variable. Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
config.c: Implement store_int_variable_value_to_array() This can be used to insert variable entries with integer type into the variable array. Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
config.c: Add support for replacing variables names from strings Read all unknown config options from the config file and store them in the config variable array. Implement a new function that can be used to replace variable names from a string with the contents of the variable name in question. Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
Add primitive config file parsing support This supports parsing "variable = value" style lines from a config file. The file can also have blank lines and comments starting with '#' character. Anything it doesn't understand are skipped. Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>