diff options
author | Michael Brown <mcb30@ipxe.org> | 2024-06-18 15:17:03 -0700 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2024-06-18 15:17:03 -0700 |
commit | 76e0933d781474acf52000cba0afaebe32361667 (patch) | |
tree | 7dd18decf7175080a9e086a583574571efbd192d /src/include/ipxe | |
parent | bf98eae5daeb0b9281562e70fdf3768a629adde8 (diff) | |
download | ipxe-76e0933d781474acf52000cba0afaebe32361667.tar.gz |
[hci] Rename "item" command's first parameter from "label" to "name"
Switch terminology for the "item" command from "item <label> <text>"
to "item <name> <text>", in preparation for repurposing the "item"
command to cover interactive forms as well as menus.
Since this renaming affects only a positional parameter, it does not
break compatibility with any existing scripts.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
-rw-r--r-- | src/include/ipxe/menu.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/ipxe/menu.h b/src/include/ipxe/menu.h index 3cc99be48..d11a92559 100644 --- a/src/include/ipxe/menu.h +++ b/src/include/ipxe/menu.h @@ -27,8 +27,8 @@ struct menu { struct menu_item { /** List of menu items */ struct list_head list; - /** Label */ - const char *label; + /** Name */ + const char *name; /** Text */ const char *text; /** Shortcut key */ @@ -38,7 +38,7 @@ struct menu_item { }; extern struct menu * create_menu ( const char *name, const char *title ); -extern struct menu_item * add_menu_item ( struct menu *menu, const char *label, +extern struct menu_item * add_menu_item ( struct menu *menu, const char *name, const char *text, int shortcut, int is_default ); extern void destroy_menu ( struct menu *menu ); |