mirror of
https://github.com/ipxe/ipxe
synced 2026-04-16 03:00:10 +03:00
[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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user