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