49 lines
1.6 KiB
C
49 lines
1.6 KiB
C
/* menu_viewer.h - Interface to menu viewer implementations. */
|
|
/*
|
|
* VasEBoot -- GRand Unified Bootloader
|
|
* Copyright (C) 2009 Free Software Foundation, Inc.
|
|
*
|
|
* VasEBoot 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.
|
|
*
|
|
* VasEBoot 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 VasEBoot. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef VasEBoot_MENU_VIEWER_HEADER
|
|
#define VasEBoot_MENU_VIEWER_HEADER 1
|
|
|
|
#include <VasEBoot/err.h>
|
|
#include <VasEBoot/symbol.h>
|
|
#include <VasEBoot/types.h>
|
|
#include <VasEBoot/menu.h>
|
|
#include <VasEBoot/term.h>
|
|
|
|
struct VasEBoot_menu_viewer
|
|
{
|
|
struct VasEBoot_menu_viewer *next;
|
|
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);
|
|
};
|
|
|
|
void VasEBoot_menu_register_viewer (struct VasEBoot_menu_viewer *viewer);
|
|
|
|
VasEBoot_err_t
|
|
VasEBoot_menu_try_text (struct VasEBoot_term_output *term,
|
|
int entry, VasEBoot_menu_t menu, int nested);
|
|
|
|
extern VasEBoot_err_t (*VasEBoot_gfxmenu_try_hook) (int entry, VasEBoot_menu_t menu,
|
|
int nested);
|
|
|
|
#endif /* VasEBoot_MENU_VIEWER_HEADER */
|