david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/include/gpxe/editstring.h

23 lines
377 B
C
Raw Normal View History

#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 */