diff options
author | Andreas Fenkart <andreas.fenkart@digitalstrom.com> | 2015-12-09 13:13:23 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-02-08 10:10:31 -0500 |
commit | 07ce9440213f17893ff2438491d8395c26eb0ccd (patch) | |
tree | f3e0d5d91015c1ada04680edc0bd666118a0fa12 /tools/env/fw_env.h | |
parent | 8b27abd8ab1f9d04b8eb93a1759ff8dec7c9d576 (diff) | |
download | u-boot-imx-07ce9440213f17893ff2438491d8395c26eb0ccd.zip u-boot-imx-07ce9440213f17893ff2438491d8395c26eb0ccd.tar.gz u-boot-imx-07ce9440213f17893ff2438491d8395c26eb0ccd.tar.bz2 |
tools: env: introduce setenv/printenv argument structs
goal is to use getopt for all argument parsing instead of adhoc
parsing in fw_getenv/fw_setenv functions
Signed-off-by: Andreas Fenkart <andreas.fenkart@digitalstrom.com>
Diffstat (limited to 'tools/env/fw_env.h')
-rw-r--r-- | tools/env/fw_env.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h index 60c0517..1a02c46 100644 --- a/tools/env/fw_env.h +++ b/tools/env/fw_env.h @@ -54,6 +54,15 @@ "bootm" #endif +struct printenv_args { +}; +extern struct printenv_args printenv_args; + +struct setenv_args { + char *script_file; +}; +extern struct setenv_args setenv_args; + extern int fw_printenv(int argc, char *argv[]); extern char *fw_getenv (char *name); extern int fw_setenv (int argc, char *argv[]); |