From 1bc3514bd83ec5e1407afa059dd52c0118e73b41 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 19 Dec 2006 19:28:12 +0000 Subject: Start of generic editable string support --- src/include/gpxe/editstring.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/include/gpxe/editstring.h (limited to 'src/include') 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 */ -- cgit v1.2.3-55-g7522