]> git.sur5r.net Git - u-boot/blobdiff - include/environment.h
env: Rename some other getenv()-related functions
[u-boot] / include / environment.h
index b4f93663da78239ad990c230caf35f6a054ce707..9a4421523555db78d0f86495e0cbeb2b720242dc 100644 (file)
@@ -282,7 +282,7 @@ extern struct hsearch_data env_htab;
 void env_crc_update(void);
 
 /* Look up the variable from the default environment */
-char *getenv_default(const char *name);
+char *env_get_default(const char *name);
 
 /* [re]set to the default environment */
 void set_default_env(const char *s);
@@ -325,6 +325,13 @@ int env_get_char(int index);
  */
 int env_load(void);
 
+/**
+ * env_save() - Save the environment to storage
+ *
+ * @return 0 if OK, -ve on error
+ */
+int env_save(void);
+
 #endif /* DO_DEPS_ONLY */
 
 #endif /* _ENVIRONMENT_H_ */