mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
env: Move env_get() to env.h
Move env_get() over 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:
parent
9fb625ce05
commit
7b51b576d6
129 changed files with 139 additions and 12 deletions
|
@ -51,6 +51,18 @@ void env_relocate(void);
|
|||
*/
|
||||
int env_match(unsigned char *name, int index);
|
||||
|
||||
/**
|
||||
* env_get() - Look up the value of an environment variable
|
||||
*
|
||||
* In U-Boot proper this can be called before relocation (which is when the
|
||||
* environment is loaded from storage, i.e. GD_FLG_ENV_READY is 0). In that
|
||||
* case this function calls env_get_f().
|
||||
*
|
||||
* @varname: Variable to look up
|
||||
* @return value of variable, or NULL if not found
|
||||
*/
|
||||
char *env_get(const char *varname);
|
||||
|
||||
/**
|
||||
* env_get_f() - Look up the value of an environment variable (early)
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue