menu.h 703 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Copyright 2010-2011 Calxeda, Inc.
  4. */
  5. #ifndef __MENU_H__
  6. #define __MENU_H__
  7. struct menu;
  8. struct menu *menu_create(char *title, int timeout, int prompt,
  9. void (*item_data_print)(void *),
  10. char *(*item_choice)(void *),
  11. void *item_choice_data);
  12. int menu_default_set(struct menu *m, char *item_key);
  13. int menu_get_choice(struct menu *m, void **choice);
  14. int menu_item_add(struct menu *m, char *item_key, void *item_data);
  15. int menu_destroy(struct menu *m);
  16. void menu_display_statusline(struct menu *m);
  17. int menu_default_choice(struct menu *m, void **choice);
  18. #if defined(CONFIG_MENU_SHOW)
  19. int menu_show(int bootdelay);
  20. #endif
  21. #endif /* __MENU_H__ */