summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRouven Czerwinski <r.czerwinski@pengutronix.de>2020-09-15 08:47:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-09-15 14:37:41 +0200
commit9c83ddc367d1aaccac439cc6c83c6d4467cd7fa8 (patch)
tree03e96f405a8402650561cb2f7b67ab6a56e68ef3 /include
parent9fdb990373c0c7fdc55a68c41967bdd376b59bff (diff)
downloadbarebox-9c83ddc367d1aaccac439cc6c83c6d4467cd7fa8.tar.gz
barebox-9c83ddc367d1aaccac439cc6c83c6d4467cd7fa8.tar.xz
globalvar: add globalvar_set function
Instead of overwriting the whole hierarchy beneath a globalvar, the globalvar_set function only sets the specific globalvar. Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/globalvar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/globalvar.h b/include/globalvar.h
index fc85e93e14..956dda074a 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -15,6 +15,7 @@ int globalvar_add_simple(const char *name, const char *value);
void globalvar_remove(const char *name);
char *globalvar_get_match(const char *match, const char *separator);
void globalvar_set_match(const char *match, const char *val);
+void globalvar_set(const char *name, const char *val);
int globalvar_add_simple_string(const char *name, char **value);
int globalvar_add_simple_int(const char *name, int *value,