summaryrefslogtreecommitdiffstats
path: root/include/globalvar.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-11-06 09:07:28 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-11-06 12:23:12 +0100
commit32e879f0a3e984ae319f8438af6ac240911a4cbf (patch)
treece6ae891a2bdda4ae850f38dae04c46d985ba9e0 /include/globalvar.h
parentb25d333493f4d58b8b99ef20e9ca4cdf32e869c4 (diff)
downloadbarebox-32e879f0a3e984ae319f8438af6ac240911a4cbf.tar.gz
barebox-32e879f0a3e984ae319f8438af6ac240911a4cbf.tar.xz
globalvar: Add support for printing all global variables
This could previously only be done with 'devinfo global'. While this is still possible this adds a more direct access via the globalvar command. This variant also adds a '*' in front of the variable if the corresponding non volatile variable exists. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/globalvar.h')
-rw-r--r--include/globalvar.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/globalvar.h b/include/globalvar.h
index 56b23fdf22..8b2caf1f8b 100644
--- a/include/globalvar.h
+++ b/include/globalvar.h
@@ -77,6 +77,7 @@ int nvvar_load(void);
void nvvar_print(void);
int nvvar_add(const char *name, const char *value);
int nvvar_remove(const char *name);
+void globalvar_print(void);
#else
static inline int globalvar_add_simple(const char *name, const char *value)