1 #ifndef _IPXE_EDITSTRING_H 2 #define _IPXE_EDITSTRING_H unsigned int cursor
Cursor position.
size_t len
Size of buffer (including terminating NUL)
unsigned int last_cursor
Last cursor position.
#define __nonnull
Declare a function's pointer parameters as non-null - i.e.
static void init_editstring(struct edit_string *string, char *buf, size_t len)
Initialise editable string.
int edit_string(struct edit_string *string, int key) __nonnull
Edit editable string.
unsigned int mod_start
Start of modified portion of string.
unsigned int mod_end
End of modified portion of string.
void replace_string(struct edit_string *string, const char *replacement) __nonnull
Replace editable string.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
char * buf
Buffer for string.