mirror of
https://github.com/ipxe/ipxe
synced 2025-12-22 13:00:39 +03:00
Start of generic editable string support
This commit is contained in:
22
src/include/gpxe/editstring.h
Normal file
22
src/include/gpxe/editstring.h
Normal file
@@ -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 */
|
||||
Reference in New Issue
Block a user