Fix cross compilation (e.g. on Darwin). Following changes to make.tmpl,
[AROS.git] / arch / all-pc / boot / grub2-aros / include / grub / icon_manager.h
blob81c48841641ea9981aa15831099d9c22980c05c8
1 /* icon_manager.h - gfxmenu icon manager. */
2 /*
3 * GRUB -- GRand Unified Bootloader
4 * Copyright (C) 2008 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_ICON_MANAGER_HEADER
21 #define GRUB_ICON_MANAGER_HEADER 1
23 #include <grub/menu.h>
24 #include <grub/bitmap.h>
26 /* Forward declaration of opaque structure handle type. */
27 typedef struct grub_gfxmenu_icon_manager *grub_gfxmenu_icon_manager_t;
29 grub_gfxmenu_icon_manager_t grub_gfxmenu_icon_manager_new (void);
30 void grub_gfxmenu_icon_manager_destroy (grub_gfxmenu_icon_manager_t mgr);
31 void grub_gfxmenu_icon_manager_clear_cache (grub_gfxmenu_icon_manager_t mgr);
32 void grub_gfxmenu_icon_manager_set_theme_path (grub_gfxmenu_icon_manager_t mgr,
33 const char *path);
34 void grub_gfxmenu_icon_manager_set_icon_size (grub_gfxmenu_icon_manager_t mgr,
35 int width, int height);
36 struct grub_video_bitmap *
37 grub_gfxmenu_icon_manager_get_icon (grub_gfxmenu_icon_manager_t mgr,
38 grub_menu_entry_t entry);
40 #endif /* GRUB_ICON_MANAGER_HEADER */