summaryrefslogtreecommitdiff
path: root/include/env.h
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-07-28 12:51:21 +0300
committerTom Rini <trini@konsulko.com>2020-07-31 17:13:00 +0300
commita97d22ebba2305f2d0aee714544c72c6a53026d9 (patch)
tree11c843faeaeb7a2bdd1e180e2e135b11cf5817da /include/env.h
parent0115dd3a6a144e9c974e00a9f3f41c5bb053236e (diff)
downloadu-boot-a97d22ebba2305f2d0aee714544c72c6a53026d9.tar.xz
cmd: env: add env select command
Add the new command 'env select' to force the persistent storage of environment, saved in gd->env_load_prio. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'include/env.h')
-rw-r--r--include/env.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/env.h b/include/env.h
index 68e0f4fa56..665857f032 100644
--- a/include/env.h
+++ b/include/env.h
@@ -287,6 +287,13 @@ int env_save(void);
int env_erase(void);
/**
+ * env_select() - Select the environment storage
+ *
+ * @return 0 if OK, -ve on error
+ */
+int env_select(const char *name);
+
+/**
* env_import() - Import from a binary representation into hash table
*
* This imports the environment from a buffer. The format for each variable is
@@ -349,5 +356,4 @@ int env_get_char(int index);
* This is used for those unfortunate archs with crappy toolchains
*/
void env_reloc(void);
-
#endif