summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGerlando Falauto <gerlando.falauto@keymile.com>2012-08-24 00:11:41 +0000
committerTom Rini <trini@ti.com>2012-09-18 12:01:52 -0700
commitb64b7c3df7906342ca8abe8ae31c0c12ced3f401 (patch)
treed94787922964d2cc6dfd8b27cff971913dc2c3cb /include
parent152874b65b8060e7b026933ce332a9687256e28c (diff)
env: make "env default" selective, check and apply
Change the syntax (user API) for "env default": -f: override write-once variables var... : accept individual variable(s) -a: all (resetting the whole env is NOT the default behavior) Enable variable checking and make changes effective by enabling do_apply argument to himport_r(). Signed-off-by: Gerlando Falauto <gerlando.falauto@keymile.com>
Diffstat (limited to 'include')
-rw-r--r--include/environment.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/environment.h b/include/environment.h
index 90fb1302b1..e8ab7033bf 100644
--- a/include/environment.h
+++ b/include/environment.h
@@ -181,6 +181,9 @@ void env_crc_update(void);
/* [re]set to the default environment */
void set_default_env(const char *s);
+/* [re]set individual variables to their value in the default environment */
+int set_default_vars(int nvars, char * const vars[]);
+
/* Import from binary representation into hash table */
int env_import(const char *buf, int check);