diff options
| author | Michael Brown | 2009-02-17 12:55:55 +0100 |
|---|---|---|
| committer | Michael Brown | 2009-02-17 12:55:55 +0100 |
| commit | 67ee41ad6d3cbd137e390e61a17eac8eaddc30fa (patch) | |
| tree | e9f5ecabec095baafacb5b777731b49a98cabe70 /src/include | |
| parent | [pxe] Allow Escape to abort PXE menu selections (diff) | |
| download | ipxe-67ee41ad6d3cbd137e390e61a17eac8eaddc30fa.tar.gz ipxe-67ee41ad6d3cbd137e390e61a17eac8eaddc30fa.tar.xz ipxe-67ee41ad6d3cbd137e390e61a17eac8eaddc30fa.zip | |
[editbox] Allow for password widgets that do not display their contents
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/gpxe/editbox.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/include/gpxe/editbox.h b/src/include/gpxe/editbox.h index 47b07c25d..007b042f8 100644 --- a/src/include/gpxe/editbox.h +++ b/src/include/gpxe/editbox.h @@ -24,14 +24,22 @@ struct edit_box { unsigned int width; /** First displayed character */ unsigned int first; + /** Flags */ + unsigned int flags; +}; + +/** Editable text box widget flags */ +enum edit_box_flags { + /** Show stars instead of contents (for password widgets) */ + EDITBOX_STARS = 0x0001, }; extern void init_editbox ( struct edit_box *box, char *buf, size_t len, WINDOW *win, unsigned int row, unsigned int col, - unsigned int width ) + unsigned int width, unsigned int flags ) __attribute__ (( nonnull (1, 2) )); extern void draw_editbox ( struct edit_box *box ) __nonnull; -static inline int __pure edit_editbox ( struct edit_box *box, int key ) __nonnull; +static inline int edit_editbox ( struct edit_box *box, int key ) __nonnull; /** * Edit text box widget |
