mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
[readline] Allow readline_history() to return a meaningful status
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 )
|
||||
|
||||
/** @} */
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user