summaryrefslogtreecommitdiff
path: root/include/env.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-01 09:47:00 -0600
committerTom Rini <trini@konsulko.com>2019-08-11 16:43:41 -0400
commit0ac7d722ede8e64973f68dbcd07b9521ba04cb63 (patch)
tree179942d65436fafe8d1c3193bd15913f3b2c5f18 /include/env.h
parent1f3db0c135fcaf40ff88bdcd058b56bc7e1f58f3 (diff)
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>
Diffstat (limited to 'include/env.h')
-rw-r--r--include/env.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/env.h b/include/env.h
index 0b03f8aa42..7204a4bc55 100644
--- a/include/env.h
+++ b/include/env.h
@@ -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