* grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
* include/grub/efi/efi.h: Likewise. * include/grub/efi/api.h: Add guid for EFI-specified variables. * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition. * grub-core/normal/charset.c (grub_utf8_process): Move from here ... * include/grub/charset.h (grub_utf8_process): ... to here. Inline. * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ... * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
This commit is contained in:
parent
e33f8d692f
commit
c598862958
6 changed files with 163 additions and 110 deletions
|
@ -1048,6 +1048,10 @@ struct grub_efi_runtime_services
|
|||
grub_efi_status_t
|
||||
(*convert_pointer) (grub_efi_uintn_t debug_disposition, void **address);
|
||||
|
||||
#define GRUB_EFI_GLOBAL_VARIABLE_GUID \
|
||||
{ 0x8BE4DF61, 0x93CA, 0x11d2, { 0xAA, 0x0D, 0x00, 0xE0, 0x98, 0x03, 0x2B,0x8C }}
|
||||
|
||||
|
||||
grub_efi_status_t
|
||||
(*get_variable) (grub_efi_char16_t *variable_name,
|
||||
grub_efi_guid_t *vendor_guid,
|
||||
|
|
|
@ -61,7 +61,8 @@ grub_err_t EXPORT_FUNC (grub_efi_set_virtual_address_map) (grub_efi_uintn_t memo
|
|||
grub_efi_uintn_t descriptor_size,
|
||||
grub_efi_uint32_t descriptor_version,
|
||||
grub_efi_memory_descriptor_t *virtual_map);
|
||||
|
||||
void *EXPORT_FUNC (grub_efi_get_variable) (const char *variable,
|
||||
const grub_efi_guid_t *guid);
|
||||
int
|
||||
EXPORT_FUNC (grub_efi_compare_device_paths) (const grub_efi_device_path_t *dp1,
|
||||
const grub_efi_device_path_t *dp2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue