summaryrefslogtreecommitdiff
path: root/include/env.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-01 18:47:01 +0300
committerTom Rini <trini@konsulko.com>2019-08-11 23:43:41 +0300
commitb5f449e8e947cf94055d0300a8625cd6bc9c37f5 (patch)
tree5a74e19935a5434d8e733f8eb93e1e9dd5df4a90 /include/env.h
parent0ac7d722ede8e64973f68dbcd07b9521ba04cb63 (diff)
downloadu-boot-b5f449e8e947cf94055d0300a8625cd6bc9c37f5.tar.xz
env: Move env_get_char() to env.h
Move env_get_char() over to the new header file. Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/env.h')
-rw-r--r--include/env.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/env.h b/include/env.h
index 7204a4bc55..42d8bcfa50 100644
--- a/include/env.h
+++ b/include/env.h
@@ -268,4 +268,14 @@ char *env_get_default(const char *name);
/* [re]set to the default environment */
void env_set_default(const char *s, int flags);
+/**
+ * env_get_char() - Get a character from the early environment
+ *
+ * This reads from the pre-relocation environment
+ *
+ * @index: Index of character to read (0 = first)
+ * @return character read, or -ve on error
+ */
+int env_get_char(int index);
+
#endif