No description
385bd9c12e
* kern/env.c (struct grub_env_context): Removed "sorted". Renamed "next" to "prev" for readability. (struct grub_env_sorted_var): New struct. (grub_env_context): Renamed to ... (initial_context): ... this. (grub_env_var_context): Renamed to ... (current_context): ... this. (grub_env_find): Look only at CURRENT_CONTEXT. (grub_env_context_open): Rewritten to copy exported variables from previous context. (grub_env_context_close): Rewritten according to the new scheme. Also, add an assertion to prevent the initial context from removed. (grub_env_insert): Removed the code for the sorted list. (grub_env_remove): Likewise. (grub_env_export): Simply mark the variable with GRUB_ENV_VAR_GLOBAL. (grub_env_set): A cosmetic change for naming consistency. (grub_env_get): Likewise. (grub_env_unset): Likewise. (grub_env_iterate): Rewritten to sort variables within this function. (grub_register_variable_hook): Fixed for naming consistency. Call grub_env_find again, only if NAME is not found at the first time. (mangle_data_slot_name): New function. (grub_env_set_data_slot): Likewise. (grub_env_get_data_slot): Likewise. (grub_env_unset_data_slot): Likewise. * include/grub/env.h (grub_env_var_type): New enum. (GRUB_ENV_VAR_LOCAL): New constant. (GRUB_ENV_VAR_GLOBAL): Likewise. (GRUB_ENV_VAR_DATA): Likewise. (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added "type". (grub_env_set): Replace VAR with NAME for consistency. (grub_register_variable_hook): Likewise. (grub_env_export): Specify the name of the argument. (grub_env_set_data_slot): New prototype. (grub_env_get_data_slot): Likewise. (grub_env_unset_data_slot): Likewise. |
||
---|---|---|
boot/i386/pc | ||
commands | ||
conf | ||
disk | ||
font | ||
fs | ||
hello | ||
include/grub | ||
io | ||
kern | ||
loader | ||
normal | ||
partmap | ||
term | ||
util | ||
video | ||
.cvsignore | ||
aclocal.m4 | ||
AUTHORS | ||
autogen.sh | ||
ChangeLog | ||
config.guess | ||
config.h.in | ||
config.sub | ||
configure | ||
configure.ac | ||
COPYING | ||
DISTLIST | ||
gencmdlist.sh | ||
gendistlist.sh | ||
genfslist.sh | ||
geninit.sh | ||
geninitheader.sh | ||
genkernsyms.sh.in | ||
genmk.rb | ||
genmodsrc.sh | ||
gensymlist.sh.in | ||
INSTALL | ||
install-sh | ||
Makefile.in | ||
mkinstalldirs | ||
NEWS | ||
README | ||
stamp-h.in | ||
THANKS | ||
TODO |
This is GRUB 2, the second version of the GRand Unified Bootloader. GRUB 2 is rewritten from scratch to make GNU GRUB cleaner, safer, more robust, more powerful, and more portable. See the file NEWS for a description of recent changes to GRUB 2. See the file INSTALL for instructions on how to build and install the GRUB 2 data and program files. Please visit the official web page of GRUB 2, for more information. The URL is <http://www.gnu.org/software/grub/grub.html>. For now, there is not much documentation yet. Please look at the GRUB Wiki <http://grub.enbug.org> for testing procedures.