From 4be490ae337355c56da6122d263ef7747d48f983 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 1 Aug 2019 09:46:57 -0600 Subject: env: Move env_load/save functions to env.h Move these function to the new header file. Acked-by: Joe Hershberger Signed-off-by: Simon Glass --- include/env.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'include/env.h') diff --git a/include/env.h b/include/env.h index fc3519f8c58..69ccfb706e0 100644 --- a/include/env.h +++ b/include/env.h @@ -198,4 +198,25 @@ void env_fix_drivers(void); */ int env_set_default_vars(int nvars, char *const vars[], int flags); +/** + * env_load() - Load the environment from storage + * + * @return 0 if OK, -ve on error + */ +int env_load(void); + +/** + * env_save() - Save the environment to storage + * + * @return 0 if OK, -ve on error + */ +int env_save(void); + +/** + * env_erase() - Erase the environment on storage + * + * @return 0 if OK, -ve on error + */ +int env_erase(void); + #endif -- cgit v1.2.3