Files
DasharoModulePkg/Include/Library/DasharoVariablesLib.h
2024-06-11 00:11:19 +03:00

56 lines
1.1 KiB
C

/** @file
A library for providing services related to Dasharo-specific EFI variables.
Copyright (c) 2024, 3mdeb Sp. z o.o. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#ifndef _DASHARO_VARIABLES_LIB_H_
#define _DASHARO_VARIABLES_LIB_H_
#include <Base.h>
#include <DasharoOptions.h>
/**
Query a default value for a specified variable.
@param VarName Name of the variable.
@retval Default value which is all zeroes for an unknown variable name.
**/
DASHARO_VAR_DATA
EFIAPI
DasharoGetVariableDefault (
CHAR16 *VarName
);
/**
Query attributes of a specified variable.
@param VarName Name of the variable.
@retval EFI variable attributes (the value is sensible for unknown ones).
**/
UINT32
EFIAPI
DasharoGetVariableAttributes (
CHAR16 *VarName
);
/**
Measure EFI variables specific to Dasharo.
This function should be called before booting into an OS or a UEFI
application.
@retval RETURN_SUCCESS Successfully measured all variables.
**/
EFI_STATUS
EFIAPI
DasharoMeasureVariables (
VOID
);
#endif