summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJames Yang <James.Yang@freescale.com>2008-01-09 11:17:49 -0600
committerWolfgang Denk <wd@denx.de>2008-01-09 22:53:20 +0100
commit6636b62a6efc7f14e6e788788631ae7a7fca4537 (patch)
treeb06d73e6a8e7f7339a3a309f39ec93dc7c25d000 /include
parent7ca90513486abd4ae50bd1b7403f47cc58c5ad25 (diff)
downloadu-boot-imx-6636b62a6efc7f14e6e788788631ae7a7fca4537.zip
u-boot-imx-6636b62a6efc7f14e6e788788631ae7a7fca4537.tar.gz
u-boot-imx-6636b62a6efc7f14e6e788788631ae7a7fca4537.tar.bz2
Expose parse_line() globally.
Add new function readline_into_buffer() that allows the output of readline to be put into a pointer to char buffer. This refactoring allows other functions besides the main command loop to also use the same input mechanism. Signed-off-by: James Yang <James.Yang@freescale.com> Acked-by: Jon Loeliger <jdl@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
index 493417f..3b5bd8c 100644
--- a/include/common.h
+++ b/include/common.h
@@ -197,6 +197,8 @@ int print_buffer (ulong addr, void* data, uint width, uint count, uint linelen);
void main_loop (void);
int run_command (const char *cmd, int flag);
int readline (const char *const prompt);
+int readline_into_buffer (const char *const prompt, char * buffer);
+int parse_line (char *, char *[]);
void init_cmd_timeout(void);
void reset_cmd_timeout(void);