summaryrefslogtreecommitdiff
path: root/include/env_flags.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-12-11 22:16:33 -0600
committerTom Rini <trini@ti.com>2012-12-13 11:46:56 -0700
commitfffad71bc489cf224eda6d826a1645423852ee45 (patch)
tree3fd5278e5515c4ad5043cf4e3ab030c81e9178f6 /include/env_flags.h
parent30fd4fadb319d7c6d43d949e2d30ffaea46a60cf (diff)
downloadu-boot-fffad71bc489cf224eda6d826a1645423852ee45.tar.gz
env: Add a command to display details about env flags
Similar to the env callback command, this will show details about the options available, the static list, and the currently active variables. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/env_flags.h')
-rw-r--r--include/env_flags.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/env_flags.h b/include/env_flags.h
index 33334464d4..7e72523f02 100644
--- a/include/env_flags.h
+++ b/include/env_flags.h
@@ -47,6 +47,17 @@ enum env_flags_vartype {
#define ENV_FLAGS_LIST_STATIC \
CONFIG_ENV_FLAGS_LIST_STATIC
+#ifdef CONFIG_CMD_ENV_FLAGS
+/*
+ * Print the whole list of available type flags.
+ */
+void env_flags_print_vartypes(void);
+/*
+ * Return the name of the type.
+ */
+const char *env_flags_get_vartype_name(enum env_flags_vartype type);
+#endif
+
/*
* Parse the flags string from a .flags attribute list into the vartype enum.
*/