summaryrefslogtreecommitdiff
path: root/include/env.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-01 18:46:56 +0300
committerTom Rini <trini@konsulko.com>2019-08-11 23:43:41 +0300
commit0b9d8a0556e577190876ae756cf1de97104c9b41 (patch)
tree066ddb61c70ff0754910c854fcf51dd90a53bf16 /include/env.h
parent03ed91887fa8da9d34a3921c1e111b28dff47a26 (diff)
downloadu-boot-0b9d8a0556e577190876ae756cf1de97104c9b41.tar.xz
env: Move set_default_vars to env.h
Move this function to the new header file and rename it so it has an env_ prefix. Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/env.h')
-rw-r--r--include/env.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/env.h b/include/env.h
index 8082f7a0eb..fc3519f8c5 100644
--- a/include/env.h
+++ b/include/env.h
@@ -187,4 +187,15 @@ int eth_env_set_enetaddr(const char *name, const uint8_t *enetaddr);
*/
void env_fix_drivers(void);
+/**
+ * env_set_default_vars() - reset variables to their default value
+ *
+ * This resets individual variables to their value in the default environment
+ *
+ * @nvars: Number of variables to set/reset
+ * @vars: List of variables to set/reset
+ * @flags: Flags controlling matching (H_... - see search.h)
+ */
+int env_set_default_vars(int nvars, char *const vars[], int flags);
+
#endif