1 /* menu_viewer.h - Interface to menu viewer implementations. */
3 * GRUB -- GRand Unified Bootloader
4 * Copyright (C) 2009 Free Software Foundation, Inc.
6 * GRUB is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * GRUB is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef GRUB_MENU_VIEWER_HEADER
21 #define GRUB_MENU_VIEWER_HEADER 1
24 #include <grub/symbol.h>
25 #include <grub/types.h>
26 #include <grub/menu.h>
27 #include <grub/term.h>
29 struct grub_menu_viewer
31 struct grub_menu_viewer
*next
;
33 void (*set_chosen_entry
) (int entry
, void *data
);
34 void (*print_timeout
) (int timeout
, void *data
);
35 void (*clear_timeout
) (void *data
);
36 void (*fini
) (void *fini
);
39 void grub_menu_register_viewer (struct grub_menu_viewer
*viewer
);
42 grub_menu_try_text (struct grub_term_output
*term
,
43 int entry
, grub_menu_t menu
, int nested
);
45 extern grub_err_t (*grub_gfxmenu_try_hook
) (int entry
, grub_menu_t menu
,
48 #endif /* GRUB_MENU_VIEWER_HEADER */