From 0115dd3a6a144e9c974e00a9f3f41c5bb053236e Mon Sep 17 00:00:00 2001 From: Patrick Delaunay Date: Tue, 28 Jul 2020 11:51:20 +0200 Subject: cmd: env: add env load command Add the new command env load to load the environment from the current location gd->env_load_prio. Signed-off-by: Patrick Delaunay --- include/env.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/env.h b/include/env.h index d6c2d751d62..68e0f4fa56b 100644 --- a/include/env.h +++ b/include/env.h @@ -265,6 +265,13 @@ int env_set_default_vars(int nvars, char *const vars[], int flags); */ int env_load(void); +/** + * env_reload() - Re-Load the environment from current storage + * + * @return 0 if OK, -ve on error + */ +int env_reload(void); + /** * env_save() - Save the environment to storage * -- cgit v1.2.3