diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-04-15 15:59:49 +0100 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-04-15 15:59:49 +0100 |
commit | 40b51124400df9cb0c57512ff93ac21827d5bac0 (patch) | |
tree | fefb7a187eda31347f14f7317b29ed6427a271e2 /src/include/ipxe/editbox.h | |
parent | 27ecc36c0bef804d12dbf8c29684c8e8159c8e47 (diff) | |
download | ipxe-40b51124400df9cb0c57512ff93ac21827d5bac0.zip ipxe-40b51124400df9cb0c57512ff93ac21827d5bac0.tar.gz ipxe-40b51124400df9cb0c57512ff93ac21827d5bac0.tar.bz2 |
[hci] Use dynamically allocated buffers for editable strings
Editable strings currently require a fixed-size buffer, which is
inelegant and limits the potential for creating interactive forms with
a variable number of edit box widgets.
Remove this limitation by switching to using a dynamically allocated
buffer for editable strings and edit box widgets.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/editbox.h')
-rw-r--r-- | src/include/ipxe/editbox.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/ipxe/editbox.h b/src/include/ipxe/editbox.h index 2c70e0b..c14bbdc 100644 --- a/src/include/ipxe/editbox.h +++ b/src/include/ipxe/editbox.h @@ -36,7 +36,7 @@ enum edit_box_flags { EDITBOX_STARS = 0x0001, }; -extern void init_editbox ( struct edit_box *box, char *buf, size_t len, +extern void init_editbox ( struct edit_box *box, char **buf, WINDOW *win, unsigned int row, unsigned int col, unsigned int width, unsigned int flags ) __attribute__ (( nonnull (1, 2) )); |