[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>
This commit is contained in:
Michael Brown
2024-06-18 15:17:03 -07:00
parent bf98eae5da
commit 76e0933d78
4 changed files with 33 additions and 33 deletions
+3 -3
View File
@@ -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 );