diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2012-12-12 04:16:33 (GMT) |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-12-13 18:46:56 (GMT) |
commit | fffad71bc489cf224eda6d826a1645423852ee45 (patch) | |
tree | 3fd5278e5515c4ad5043cf4e3ab030c81e9178f6 /include | |
parent | 30fd4fadb319d7c6d43d949e2d30ffaea46a60cf (diff) | |
download | u-boot-fffad71bc489cf224eda6d826a1645423852ee45.tar.xz |
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')
-rw-r--r-- | include/env_flags.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/env_flags.h b/include/env_flags.h index 3333446..7e72523 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. */ |