mirror of
https://xff.cz/git/u-boot/
synced 2025-09-26 13:01:17 +02:00
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>
This commit is contained in:
@@ -198,4 +198,25 @@ void env_fix_drivers(void);
|
|||||||
*/
|
*/
|
||||||
int env_set_default_vars(int nvars, char *const vars[], int flags);
|
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
|
#endif
|
||||||
|
@@ -296,27 +296,6 @@ int env_import_redund(const char *buf1, int buf1_status,
|
|||||||
*/
|
*/
|
||||||
int env_get_char(int index);
|
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 /* DO_DEPS_ONLY */
|
||||||
|
|
||||||
#endif /* _ENVIRONMENT_H_ */
|
#endif /* _ENVIRONMENT_H_ */
|
||||||
|
Reference in New Issue
Block a user