diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-01 09:46:57 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-08-11 16:43:41 -0400 |
commit | 4be490ae337355c56da6122d263ef7747d48f983 (patch) | |
tree | 704ef0bff634025eaaa98e0d66b81cea2cc74d9e /include/env.h | |
parent | 0b9d8a0556e577190876ae756cf1de97104c9b41 (diff) | |
download | u-boot-4be490ae337355c56da6122d263ef7747d48f983.tar.gz |
env: Move env_load/save functions to env.h
Move these function to the new header file.
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.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 |