29#define READLINE_HISTORY_MAX_DEPTH ( ( 1 << 3 ) - 1 )
56 unsigned long timeout,
char **line );
#define __malloc
Declare a pointer returned by a function as a unique memory address as returned by malloc-type functi...
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
#define FILE_SECBOOT(_status)
Declare a file's UEFI Secure Boot permission status.
int prompt(const char *text, unsigned long timeout, int key)
Prompt for keypress.
char *__malloc readline(const char *prompt)
Read line from console.
#define READLINE_HISTORY_MAX_DEPTH
Maximum depth of a readline history buffer.
void history_free(struct readline_history *history)
Free history buffer.
int readline_history(const char *prompt, const char *prefill, struct readline_history *history, unsigned long timeout, char **line)
Read line from console (with history)
A readline history entry.
char * temp
Temporary copy of string.
char * string
Persistent copy of string.
A readline history buffer.
struct readline_history_entry entries[READLINE_HISTORY_MAX_DEPTH+1]
History entries.
unsigned int next
Position of next entry within buffer.
unsigned int depth
Current depth within history buffer.