diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-17 10:46:42 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-04-17 12:56:44 +0200 |
commit | d91b7772c48fa47bbd73857471e91a5d0cc8b876 (patch) | |
tree | 79a8ef7aabddd6e46ebf14d3c8a1e91754b99844 /include/common.h | |
parent | 59dbb4fe2c70fc79497f486c55c5fa785299b1c1 (diff) | |
download | barebox-d91b7772c48fa47bbd73857471e91a5d0cc8b876.tar.gz barebox-d91b7772c48fa47bbd73857471e91a5d0cc8b876.tar.xz |
memory commands: export common functions
The memory commands all use open_and_lseek and mem_parse_options. Export
them to be able to split the memory commands into separate files.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/common.h')
-rw-r--r-- | include/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h index e559b94a71..2263c00684 100644 --- a/include/common.h +++ b/include/common.h @@ -221,6 +221,10 @@ int run_shell(void); int memory_display(char *addr, loff_t offs, ulong nbytes, int size, int swab); +int mem_parse_options(int argc, char *argv[], char *optstr, int *mode, + char **sourcefile, char **destfile, int *swab); +int open_and_lseek(const char *filename, int mode, loff_t pos); + extern const char version_string[]; #ifdef CONFIG_BANNER void barebox_banner(void); |