summaryrefslogtreecommitdiff
path: root/include/env.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-08-01 09:46:41 -0600
committerTom Rini <trini@konsulko.com>2019-08-11 16:43:41 -0400
commitf1f0ae6a9ce7f4bd148daac233a70a065623d3dd (patch)
treefb3943ddae06d279a8493f596aba1dc5cbc39f03 /include/env.h
parentaf95f2061aee57ce76e1d62a6962724cc5a849a8 (diff)
env: Move get_env_id() to env.h
Move this function over to the new header file. Also rename it to have an env_ prefix like the other functions. Signed-off-by: Simon Glass <sjg@chromium.org> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
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 157ee9b724..b82d80de17 100644
--- a/include/env.h
+++ b/include/env.h
@@ -12,6 +12,16 @@
#include <stdbool.h>
/**
+ * env_get_id() - Gets a sequence number for the environment
+ *
+ * This value increments every time the environment changes, so can be used an
+ * an indication of this
+ *
+ * @return environment ID
+ */
+int env_get_id(void);
+
+/**
* env_complete() - return an auto-complete for environment variables
*
* @var: partial name to auto-complete