|
@@ -30,6 +30,20 @@ extern void init_editbox ( struct edit_box *box, char *buf, size_t len,
|
30
|
30
|
WINDOW *win, unsigned int row, unsigned int col,
|
31
|
31
|
unsigned int width );
|
32
|
32
|
extern void draw_editbox ( struct edit_box *box );
|
33
|
|
-extern int edit_editbox ( struct edit_box *box, int key );
|
|
33
|
+
|
|
34
|
+/**
|
|
35
|
+ * Edit text box widget
|
|
36
|
+ *
|
|
37
|
+ * @v box Editable text box widget
|
|
38
|
+ * @v key Key pressed by user
|
|
39
|
+ * @ret key Key returned to application, or zero
|
|
40
|
+ *
|
|
41
|
+ * You must call draw_editbox() to update the display after calling
|
|
42
|
+ * edit_editbox().
|
|
43
|
+ *
|
|
44
|
+ */
|
|
45
|
+static inline int edit_editbox ( struct edit_box *box, int key ) {
|
|
46
|
+ return edit_string ( &box->string, key );
|
|
47
|
+}
|
34
|
48
|
|
35
|
49
|
#endif /* _GPXE_EDITBOX_H */
|