summaryrefslogtreecommitdiff
path: root/include/common.h
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2012-01-16 21:13:05 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-02-12 10:11:23 +0100
commit9c3483113de1204118a1b252bf4c81b899dd12b4 (patch)
tree5f7af1ceb46bd36f92f63076081174db1d84bb96 /include/common.h
parent2627c8c0a1bc64099cf6b6e2d978d666f88ef08d (diff)
downloadu-boot-imx-9c3483113de1204118a1b252bf4c81b899dd12b4.zip
u-boot-imx-9c3483113de1204118a1b252bf4c81b899dd12b4.tar.gz
u-boot-imx-9c3483113de1204118a1b252bf4c81b899dd12b4.tar.bz2
common: add possibility for readline_into_buffer timeout
add possibility to add a timeout when reading a line into a buffer. Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Mike Frysinger <vapier@gentoo.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h
index 3df1def..7a9b3a2 100644
--- a/include/common.h
+++ b/include/common.h
@@ -265,7 +265,8 @@ int run_command (const char *cmd, int flag);
int run_command2(const char *cmd, int flag);
#endif
int readline (const char *const prompt);
-int readline_into_buffer (const char *const prompt, char * buffer);
+int readline_into_buffer(const char *const prompt, char *buffer,
+ int timeout);
int parse_line (char *, char *[]);
void init_cmd_timeout(void);
void reset_cmd_timeout(void);