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>
28 struct grub_menu_viewer
30 /* The menu viewer name. */
33 grub_err_t (*show_menu
) (grub_menu_t menu
, int nested
);
35 struct grub_menu_viewer
*next
;
37 typedef struct grub_menu_viewer
*grub_menu_viewer_t
;
39 void grub_menu_viewer_register (grub_menu_viewer_t viewer
);
41 grub_err_t
grub_menu_viewer_show_menu (grub_menu_t menu
, int nested
);
43 #endif /* GRUB_MENU_VIEWER_HEADER */