summaryrefslogtreecommitdiff
path: root/include/env.h
diff options
context:
space:
mode:
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 19b559abf1..5d205ef02d 100644
--- a/include/env.h
+++ b/include/env.h
@@ -22,6 +22,16 @@
int env_get_id(void);
/**
+ * env_init() - Set up the pre-relocation environment
+ *
+ * This locates the environment or uses the default if nothing is available.
+ * This must be called before env_get() will work.
+ *
+ * @return 0 if OK, -ENODEV if no environment drivers are enabled
+ */
+int env_init(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