mirror of
https://xff.cz/git/u-boot/
synced 2025-10-26 16:13:55 +01:00
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>
This commit is contained in:
committed by
Albert ARIBAUD
parent
2627c8c0a1
commit
9c3483113d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user