Lines Matching refs:menu

11 To use the menu code, enable CONFIG_MENU, and include "menu.h" where
15 the menu, and an opaque pointer to data controlled by the consumer.
17 If you want to show a menu, instead starting the shell, define
19 function, which handle your menu. This function returns the remaining
24 #include "menu.h"
27 * Consumers of the menu interfaces will use a struct menu * as the
28 * handle for a menu. struct menu is only fully defined in menu.c,
29 * preventing consumers of the menu interfaces from accessing its
32 struct menu;
35 * NOTE: See comments in common/menu.c for more detailed documentation on
40 * menu_create() - Creates a menu handle with default settings
42 struct menu *menu_create(char *title, int timeout, int prompt,
48 * menu_item_add() - Adds or replaces a menu item
50 int menu_item_add(struct menu *m, char *item_key, void *item_data);
53 * menu_default_set() - Sets the default choice for the menu
55 int menu_default_set(struct menu *m, char *item_key);
60 int menu_default_choice(struct menu *m, void **choice);
63 * menu_get_choice() - Returns the user's selected menu entry, or the
64 * default if the menu is set to not prompt or the timeout expires.
66 int menu_get_choice(struct menu *m, void **choice);
69 * menu_destroy() - frees the memory used by a menu and its items.
71 int menu_destroy(struct menu *m);
74 * menu_display_statusline(struct menu *m);
77 void menu_display_statusline(struct menu *m);
81 This example creates a menu that always prompts, and allows the user
84 #include "menu.h"
95 struct menu *m;