TianoCore EDK2 master
|
#include "VariablePolicy.h"
#include <Library/BaseLib.h>
#include <Library/DebugLib.h>
#include <Library/HiiLib.h>
#include <Library/ShellLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Protocol/ShellDynamicCommand.h>
Go to the source code of this file.
Functions | |
SHELL_STATUS EFIAPI | VarPolicyCommandHandler (IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This, IN EFI_SYSTEM_TABLE *SystemTable, IN EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters, IN EFI_SHELL_PROTOCOL *Shell) |
STATIC CHAR16 *EFIAPI | VarPolicyCommandGetHelp (IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This, IN CONST CHAR8 *Language) |
EFI_STATUS EFIAPI | VariablePolicyDynamicCommandEntryPoint (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
EFI_STATUS EFIAPI | VariablePolicyDynamicCommandUnload (IN EFI_HANDLE ImageHandle) |
Variables | |
EFI_HII_HANDLE | mVarPolicyShellCommandHiiHandle |
STATIC EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL | mVarPolicyDynamicCommand |
Functionality specific for dynamic UEFI shell command support.
This command can provide detailed UEFI variable policy configuration information in the UEFI shell.
Copyright (c) Microsoft Corporation. SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file VariablePolicyDynamicCommand.c.
EFI_STATUS EFIAPI VariablePolicyDynamicCommandEntryPoint | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Entry point of the UEFI variable policy dynamic shell command.
Produce the Dynamic Command Protocol to handle the "varpolicy" command.
[in] | ImageHandle | The image handle of the process. |
[in] | SystemTable | The EFI System Table pointer. |
EFI_SUCCESS | The "varpolicy" command executed successfully. |
EFI_ABORTED | HII package failed to initialize. |
others | Other errors when executing "varpolicy" command. |
Definition at line 105 of file VariablePolicyDynamicCommand.c.
EFI_STATUS EFIAPI VariablePolicyDynamicCommandUnload | ( | IN EFI_HANDLE | ImageHandle | ) |
Unload the dynamic "varpolicy" UEFI Shell command.
[in] | ImageHandle | The image handle of the process. |
EFI_SUCCESS | The image is unloaded. |
Others | Failed to unload the image. |
Definition at line 139 of file VariablePolicyDynamicCommand.c.
STATIC CHAR16 *EFIAPI VarPolicyCommandGetHelp | ( | IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL * | This, |
IN CONST CHAR8 * | Language | ||
) |
This is the command help handler function pointer callback type. This function is responsible for displaying help information for the associated command.
[in] | This | The instance of the EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL. |
[in] | Language | The pointer to the language string to use. |
Definition at line 72 of file VariablePolicyDynamicCommand.c.
SHELL_STATUS EFIAPI VarPolicyCommandHandler | ( | IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL * | This, |
IN EFI_SYSTEM_TABLE * | SystemTable, | ||
IN EFI_SHELL_PARAMETERS_PROTOCOL * | ShellParameters, | ||
IN EFI_SHELL_PROTOCOL * | Shell | ||
) |
This is the shell command handler function pointer callback type.
This function handles the command when it is invoked in the shell.
[in] | This | The instance of the EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL. |
[in] | SystemTable | The pointer to the system table. |
[in] | ShellParameters | The parameters associated with the command. |
[in] | Shell | The instance of the shell protocol used in the context of processing this command. |
Definition at line 43 of file VariablePolicyDynamicCommand.c.
STATIC EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL mVarPolicyDynamicCommand |
Definition at line 84 of file VariablePolicyDynamicCommand.c.
|
extern |
Definition at line 34 of file VariablePolicy.c.