diff options
Diffstat (limited to 'src/include/gpxe/editstring.h')
| -rw-r--r-- | src/include/gpxe/editstring.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/include/gpxe/editstring.h b/src/include/gpxe/editstring.h new file mode 100644 index 000000000..7dc96d9aa --- /dev/null +++ b/src/include/gpxe/editstring.h @@ -0,0 +1,22 @@ +#ifndef _EDITSTRING_H +#define _EDITSTRING_H + +/** @file + * + * Editable strings + * + */ + +/** An editable string */ +struct edit_string { + /** Buffer for string */ + char *buf; + /** Size of buffer (including terminating NUL) */ + size_t len; + /** Cursor position */ + unsigned int cursor; +}; + +extern int edit_string ( struct edit_string *string, int key ); + +#endif /* _EDITSTRING_H */ |
