Lines Matching defs:menu
33 #include "menu.h"
39 static int (*find_enabled_menu_item())(struct menu_item *menu, int item);
51 * This routine takes a menu struct and concatenates the
52 * command names into an array of strings describing the menu.
53 * All menus have a 'quit' command at the bottom to exit the menu.
56 create_menu_list(menu)
57 struct menu_item *menu;
70 * Count the number of active commands in the menu and allocate
73 for (mptr = menu; mptr->menu_cmd != NULL; mptr++) {
80 * Fill in the array with the names of the menu commands.
82 for (mptr = menu; mptr->menu_cmd != NULL; mptr++) {
95 * This routine takes a menu list created by the above routine and
109 * Find the "i"th enabled menu in a menu list. This depends
114 find_enabled_menu_item(menu, item))()
115 struct menu_item *menu;
120 for (mp = menu; mp->menu_cmd != NULL; mp++) {
132 * This routine 'runs' a menu. It repeatedly requests a command and
138 run_menu(menu, title, prompt, display_flag)
139 struct menu_item *menu;
152 * Create the menu list and display it.
154 list = create_menu_list(menu);
172 if ((f = find_enabled_menu_item(menu, i)) == NULL)
188 * work at the menu itself.
192 * Since menu items are dynamic, some commands
193 * cause changes to occur. Destroy the old menu,
197 list = create_menu_list(menu);
199 * Redisplay menu, if we're returning to this one.
209 * Clean up the environment stack and throw away the menu list.
229 * Glue to always return true. Used for menu items which
244 * in the main menu. However, in the normal interactive mode, the disk
245 * selection happens before entering the main menu.
248 * Return true for menu items enabled only for embedded SCSI controllers
259 * Return false for menu items disabled only for embedded SCSI controllers
270 * Return false for menu items disabled for scsi controllers
281 * Return false for menu items disabled for efi labels
328 * Return true for menu items enabled scsi controllers
340 * Return true for menu items enabled if expert mode is enabled
352 * Return true for menu items enabled if expert mode is enabled
362 * Return true for menu items enabled if developer mode is enabled
371 * For x86, always return true for menu items enabled
373 * For Sparc, only return true for menu items enabled