Fix cross compilation (e.g. on Darwin). Following changes to make.tmpl,
[AROS.git] / arch / all-pc / boot / grub2-aros / include / grub / env_private.h
blobbb001533fb464067b168b325feb33caec077ff9e
1 /*
2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2003,2005,2006,2007,2009 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef GRUB_ENV_PRIVATE_HEADER
20 #define GRUB_ENV_PRIVATE_HEADER 1
22 #include <grub/env.h>
24 /* The size of the hash table. */
25 #define HASHSZ 13
27 /* A hashtable for quick lookup of variables. */
28 struct grub_env_context
30 /* A hash table for variables. */
31 struct grub_env_var *vars[HASHSZ];
33 /* One level deeper on the stack. */
34 struct grub_env_context *prev;
37 /* This is used for sorting only. */
38 struct grub_env_sorted_var
40 struct grub_env_var *var;
41 struct grub_env_sorted_var *next;
44 extern struct grub_env_context *EXPORT_VAR(grub_current_context);
46 #endif /* ! GRUB_ENV_PRIVATE_HEADER */