[readline] Allow readline_history() to return a meaningful status

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-10-24 23:21:49 -07:00
parent 88e19fcda9
commit 2c011d77ae
5 changed files with 32 additions and 20 deletions

View File

@@ -264,6 +264,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ERRFILE_ocsp ( ERRFILE_OTHER | 0x002f0000 )
#define ERRFILE_nslookup ( ERRFILE_OTHER | 0x00300000 )
#define ERRFILE_efi_snp_hii ( ERRFILE_OTHER | 0x00310000 )
#define ERRFILE_readline ( ERRFILE_OTHER | 0x00320000 )
/** @} */

View File

@@ -50,9 +50,8 @@ struct readline_history {
};
extern void history_free ( struct readline_history *history );
extern char * __malloc readline_history ( const char *prompt,
const char *prefill,
struct readline_history *history );
extern int readline_history ( const char *prompt, const char *prefill,
struct readline_history *history, char **line );
extern char * __malloc readline ( const char *prompt );
#endif /* _READLINE_H */