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>
return &v[i];
}
-static int store_str_variable_value_to_array(const char *variable,
- const char *value,
- struct plotter_config *cfg)
+int store_str_variable_value_to_array(const char *variable, const char *value,
+ struct plotter_config *cfg)
{
struct variable_value *v;
int populate_config_data_from_file(const char *path,
struct plotter_config *cfg);
+int store_str_variable_value_to_array(const char *variable, const char *value,
+ struct plotter_config *cfg);
int store_int_variable_value_to_array(const char *variable, int value,
struct plotter_config *cfg);
int replace_variables_with_values(char *str, size_t len,