summaryrefslogtreecommitdiffstats
path: root/include/globalvar.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-08-24 11:17:43 +0800
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-09-14 00:46:00 +0800
commit4732c2703015e23a01a2bf0bef790c045dbc810a (patch)
treeb58e73befcf5ff66409b17014839fb3c2a3ee9d2 /include/globalvar.h
parente23b943a42aedb31e9959dba8696699ee1a4b1d7 (diff)
downloadbarebox-4732c2703015e23a01a2bf0bef790c045dbc810a.tar.gz
barebox-4732c2703015e23a01a2bf0bef790c045dbc810a.tar.xz
globalvar: add support to set a value to of all globalvars beginning with 'match'
via c global_set_match and global -r Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'include/globalvar.h')
-rw-r--r--include/globalvar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/globalvar.h b/include/globalvar.h
index a127a0539e..ddf885f18e 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -9,6 +9,7 @@ int globalvar_add(const char *name,
const char *(*get)(struct device_d *, struct param_d *p),
unsigned long flags);
char *globalvar_get_match(const char *match, const char *seperator);
+void globalvar_set_match(const char *match, const char *val);
#else
static inline int globalvar_add_simple(const char *name)
{
@@ -27,6 +28,8 @@ static inline char *globalvar_get_match(const char *match, const char *seperator
{
return NULL;
}
+
+static inline void globalvar_set_match(const char *match, const char *val) {}
#endif
#endif /* __GLOBALVAR_H */