mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
env: Move get/set_default_env() to env.h
Move these functions to the new header file and rename set_default_env() to env_set_default() so that it has a consistent env_ prefix. Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -257,4 +257,15 @@ int env_export(struct environment_s *env_out);
|
||||
int env_import_redund(const char *buf1, int buf1_read_fail,
|
||||
const char *buf2, int buf2_read_fail);
|
||||
|
||||
/**
|
||||
* env_get_default() - Look up a variable from the default environment
|
||||
*
|
||||
* @name: Variable to look up
|
||||
* @return value if found, NULL if not found in default environment
|
||||
*/
|
||||
char *env_get_default(const char *name);
|
||||
|
||||
/* [re]set to the default environment */
|
||||
void env_set_default(const char *s, int flags);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user