class EfiVariables
Defined at line 42 of file ../../src/firmware/gigaboot/cpp/efi_variables.h
Helper wrapper class for EFI C API
Contains EFI variables related logic at the moment.
More convenient interface for following functions:
EfiGetNextVariableName()
EfiGetVariable()
QueryVariableInfo()
Provides C++ style container wrapper for VariableName iteration
E.g:
EfiVariables efi_variables;
for (const auto
&
variable_id : efi_variables) {
if (!variable_id.IsValid()) {
return false;
}
// do something with variable_id
}
Public Methods
fit::result<efi_status, EfiVariableInfo> EfiQueryVariableInfo ()
Defined at line 33 of file ../../src/firmware/gigaboot/cpp/efi_variables.cc
void ~EfiVariables ()
Defined at line 44 of file ../../src/firmware/gigaboot/cpp/efi_variables.h
fit::result<efi_status, efi::VariableValue> EfiGetVariable (const efi::VariableId & variable_id)
Defined at line 73 of file ../../src/firmware/gigaboot/cpp/efi_variables.cc
fit::result<efi_status, efi_guid> GetGuid (std::u16string_view var_name)
Search for GUID for VariableName
Returns:
`efi_guid` on success
or
EFI_NOT_FOUND if there are no Variables with provided name were found
EFI_ABORTED on any other error
EFI_INVALID_PARAMETER if there were multiple variables with the same name were found
Defined at line 99 of file ../../src/firmware/gigaboot/cpp/efi_variables.cc
fit::result<efi_status, efi_guid> GetGuid (std::u16string_view var_name)
Search for GUID for VariableName
Returns:
`efi_guid` on success
or
EFI_NOT_FOUND if there are no Variables with provided name were found
EFI_ABORTED on any other error
EFI_INVALID_PARAMETER if there were multiple variables with the same name were found
Defined at line 99 of file ../../src/firmware/gigaboot/cpp/efi_variables.cc
iterator begin ()
Defined at line 100 of file ../../src/firmware/gigaboot/cpp/efi_variables.h
iterator end ()
Defined at line 105 of file ../../src/firmware/gigaboot/cpp/efi_variables.h