From 1c32184fb022a9cf0ed544f1e3821036a2505ef7 Mon Sep 17 00:00:00 2001 From: Timo Kokkonen Date: Thu, 16 Jan 2014 22:20:07 +0200 Subject: [PATCH] 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 --- config.c | 5 ++--- config.h | 2 ++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.c b/config.c index 8b84d58..5f1f633 100644 --- a/config.c +++ b/config.c @@ -102,9 +102,8 @@ static struct variable_value *prepare_slot_for_insertion( 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; diff --git a/config.h b/config.h index c8abadc..c4df710 100644 --- a/config.h +++ b/config.h @@ -30,6 +30,8 @@ int read_args(int argc, char *argv[], struct plotter_config *cfg); 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, -- 2.44.0