diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-06-20 16:20:05 -0700 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-06-20 16:24:38 -0700 |
commit | 039019039e89aedf4c5a0d81c351638a1e036335 (patch) | |
tree | 8af0293694ba5095d2bb9e6cb318d4e27e9726a2 /src/core | |
parent | c8e50bb0fd3d9d1629e5c78f92bbf7bc9af84f2c (diff) | |
download | ipxe-039019039e89aedf4c5a0d81c351638a1e036335.tar.gz |
[dynui] Allow for multiple flags on a user interface item
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/dynui.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/dynui.c b/src/core/dynui.c index 33218f598..3d139c02a 100644 --- a/src/core/dynui.c +++ b/src/core/dynui.c @@ -96,13 +96,13 @@ struct dynamic_ui * create_dynui ( const char *name, const char *title ) { * @v dynui Dynamic user interface * @v name Name, or NULL * @v text Text, or NULL + * @v flags Flags * @v shortcut Shortcut key - * @v is_default Item is the default item * @ret item User interface item, or NULL on failure */ struct dynamic_item * add_dynui_item ( struct dynamic_ui *dynui, const char *name, const char *text, - int shortcut, int is_default ) { + unsigned int flags, int shortcut ) { struct dynamic_item *item; size_t name_len; size_t text_len; @@ -132,8 +132,8 @@ struct dynamic_item * add_dynui_item ( struct dynamic_ui *dynui, strcpy ( text_copy, text ); item->text = text_copy; item->index = dynui->count++; + item->flags = flags; item->shortcut = shortcut; - item->is_default = is_default; /* Add to list of items */ list_add_tail ( &item->list, &dynui->items ); |