TianoCore EDK2 master
Loading...
Searching...
No Matches
VariablePolicyLib.h
1
9#ifndef _VARIABLE_POLICY_LIB_H_
10#define _VARIABLE_POLICY_LIB_H_
11
12#include <Protocol/VariablePolicy.h>
13
31EFIAPI
32RegisterVariablePolicy (
34 );
35
56EFIAPI
57ValidateSetVariable (
58 IN CHAR16 *VariableName,
59 IN EFI_GUID *VendorGuid,
60 IN UINT32 Attributes,
61 IN UINTN DataSize,
62 IN VOID *Data
63 );
64
77EFIAPI
78DisableVariablePolicy (
79 VOID
80 );
81
99EFIAPI
100DumpVariablePolicy (
101 OUT UINT8 *Policy,
102 IN OUT UINT32 *Size
103 );
104
148EFIAPI
149GetVariablePolicyInfo (
150 IN CONST CHAR16 *VariableName,
151 IN CONST EFI_GUID *VendorGuid,
152 IN OUT UINTN *VariablePolicyVariableNameBufferSize OPTIONAL,
153 OUT VARIABLE_POLICY_ENTRY *VariablePolicy,
154 OUT CHAR16 *VariablePolicyVariableName OPTIONAL
155 );
156
203EFIAPI
204GetLockOnVariableStateVariablePolicyInfo (
205 IN CONST CHAR16 *VariableName,
206 IN CONST EFI_GUID *VendorGuid,
207 IN OUT UINTN *VariableLockPolicyVariableNameBufferSize OPTIONAL,
209 OUT CHAR16 *VariableLockPolicyVariableName OPTIONAL
210 );
211
221BOOLEAN
222EFIAPI
223IsVariablePolicyEnabled (
224 VOID
225 );
226
236EFIAPI
237LockVariablePolicy (
238 VOID
239 );
240
250BOOLEAN
251EFIAPI
252IsVariablePolicyInterfaceLocked (
253 VOID
254 );
255
271EFIAPI
272InitVariablePolicyLib (
273 IN EFI_GET_VARIABLE GetVariableHelper
274 );
275
283BOOLEAN
284EFIAPI
285IsVariablePolicyLibInitialized (
286 VOID
287 );
288
299EFIAPI
300DeinitVariablePolicyLib (
301 VOID
302 );
303
304#endif // _VARIABLE_POLICY_LIB_H_
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
EFI_STATUS(EFIAPI * EFI_GET_VARIABLE)(IN CHAR16 *VariableName, IN EFI_GUID *VendorGuid, OUT UINT32 *Attributes OPTIONAL, IN OUT UINTN *DataSize, OUT VOID *Data OPTIONAL)
Definition: UefiSpec.h:696
Definition: Base.h:213