From 66007fa448e3a0ced0c8c6d13a8fad281c483055 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 19 Dec 2006 23:24:16 +0000 Subject: Provide an edit history to allow caller to efficiently update display. --- src/include/gpxe/editstring.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/gpxe/editstring.h b/src/include/gpxe/editstring.h index 7dc96d9aa..7f3c5dcb1 100644 --- a/src/include/gpxe/editstring.h +++ b/src/include/gpxe/editstring.h @@ -1,5 +1,5 @@ -#ifndef _EDITSTRING_H -#define _EDITSTRING_H +#ifndef _GPXE_EDITSTRING_H +#define _GPXE_EDITSTRING_H /** @file * @@ -15,8 +15,17 @@ struct edit_string { size_t len; /** Cursor position */ unsigned int cursor; + + /* The following items are the edit history */ + + /** Last cursor position */ + unsigned int last_cursor; + /** Start of modified portion of string */ + unsigned int mod_start; + /** End of modified portion of string */ + unsigned int mod_end; }; extern int edit_string ( struct edit_string *string, int key ); -#endif /* _EDITSTRING_H */ +#endif /* _GPXE_EDITSTRING_H */ -- cgit v1.2.3-55-g7522