]>
git.ipfire.org Git - people/ms/u-boot.git/blob - include/menu.h
2 * Copyright 2010-2011 Calxeda, Inc.
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License as published by the Free
6 * Software Foundation; either version 2 of the License, or (at your option)
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along with
15 * this program. If not, see <http://www.gnu.org/licenses/>.
23 struct menu
*menu_create(char *title
, int timeout
, int prompt
,
24 void (*item_data_print
)(void *));
25 int menu_default_set(struct menu
*m
, char *item_key
);
26 int menu_get_choice(struct menu
*m
, void **choice
);
27 int menu_item_add(struct menu
*m
, char *item_key
, void *item_data
);
28 int menu_destroy(struct menu
*m
);
29 void menu_display_statusline(struct menu
*m
);
31 #if defined(CONFIG_MENU_SHOW)
32 int menu_show(int bootdelay
);
34 #endif /* __MENU_H__ */