diff options
author | Simon Glass <sjg@chromium.org> | 2019-08-01 09:46:41 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-08-11 16:43:41 -0400 |
commit | f1f0ae6a9ce7f4bd148daac233a70a065623d3dd (patch) | |
tree | fb3943ddae06d279a8493f596aba1dc5cbc39f03 /include/env.h | |
parent | af95f2061aee57ce76e1d62a6962724cc5a849a8 (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.h | 10 |
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 |