From 3a7d55716d6bfe5122de9692383357344fff2a94 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Thu, 1 Aug 2019 09:46:42 -0600 Subject: env: Move env_get_f() to env.h Move this function over to the new header file. Signed-off-by: Simon Glass Acked-by: Joe Hershberger --- include/env.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/env.h') diff --git a/include/env.h b/include/env.h index b82d80de177..19b559abf15 100644 --- a/include/env.h +++ b/include/env.h @@ -21,6 +21,18 @@ */ int env_get_id(void); +/** + * env_get_f() - Look up the value of an environment variable (early) + * + * This function is called from env_get() if the environment has not been + * loaded yet (GD_FLG_ENV_READY flag is 0). Some environment locations will + * support reading the value (slowly) and some will not. + * + * @varname: Variable to look up + * @return value of variable, or NULL if not found + */ +int env_get_f(const char *name, char *buf, unsigned int len); + /** * env_complete() - return an auto-complete for environment variables * -- cgit v1.2.3