TianoCore EDK2 master
Loading...
Searching...
No Matches
VarCheckHiiLib.c File Reference
#include "VarCheckHii.h"
#include "VarCheckHiiGen.h"
#include "VarCheckHiiLibCommon.h"

Go to the source code of this file.

Functions

EFI_STATUS EFIAPI SetVariableCheckHandlerHii (IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, IN UINT32 Attributes, IN UINTN DataSize, IN VOID *Data)
 
EFI_STATUS EFIAPI VarCheckHiiLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

Var Check Hii handler.

Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent

Definition in file VarCheckHiiLib.c.

Function Documentation

◆ SetVariableCheckHandlerHii()

EFI_STATUS EFIAPI SetVariableCheckHandlerHii ( IN CHAR16 *  VariableName,
IN EFI_GUID VendorGuid,
IN UINT32  Attributes,
IN UINTN  DataSize,
IN VOID *  Data 
)

Sets the variable check handler for HII.

Parameters
[in]VariableNameName of Variable to set.
[in]VendorGuidVariable vendor GUID.
[in]AttributesAttribute value of the variable.
[in]DataSizeSize of Data to set.
[in]DataData pointer.
Return values
EFI_SUCCESSThe SetVariable check result was success.
EFI_SECURITY_VIOLATIONCheck fail.

Definition at line 25 of file VarCheckHiiLib.c.

◆ VarCheckHiiLibConstructor()

EFI_STATUS EFIAPI VarCheckHiiLibConstructor ( IN EFI_HANDLE  ImageHandle,
IN EFI_SYSTEM_TABLE SystemTable 
)

Constructor function of VarCheckHiiLib to register var check HII handler.

Parameters
[in]ImageHandleThe firmware allocated handle for the EFI image.
[in]SystemTableA pointer to the EFI System Table.
Return values
EFI_SUCCESSThe constructor executed correctly.

Definition at line 47 of file VarCheckHiiLib.c.