[readline] Add an optional timeout to readline_history()

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2021-04-23 12:27:57 +01:00
parent 56f7d44fde
commit b2501dd122
4 changed files with 18 additions and 6 deletions

View File

@@ -51,7 +51,8 @@ struct readline_history {
extern void history_free ( struct readline_history *history );
extern int readline_history ( const char *prompt, const char *prefill,
struct readline_history *history, char **line );
struct readline_history *history,
unsigned long timeout, char **line );
extern char * __malloc readline ( const char *prompt );
#endif /* _READLINE_H */