From: Simon Glass Date: Thu, 1 Aug 2019 15:46:57 +0000 (-0600) Subject: env: Move env_load/save functions to env.h X-Git-Tag: v2019.10-rc2~4^2~18 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4be490ae337355c56da6122d263ef7747d48f983;p=oweals%2Fu-boot.git 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 --- diff --git a/include/env.h b/include/env.h index fc3519f8c5..69ccfb706e 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 diff --git a/include/environment.h b/include/environment.h index 97d4886599..b921b8f28e 100644 --- a/include/environment.h +++ b/include/environment.h @@ -296,27 +296,6 @@ int env_import_redund(const char *buf1, int buf1_status, */ int env_get_char(int index); -/** - * 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 /* DO_DEPS_ONLY */ #endif /* _ENVIRONMENT_H_ */