TianoCore EDK2 master
|
#include "UefiShellLevel1CommandsLib.h"
Go to the source code of this file.
Functions | |
CONST CHAR16 *EFIAPI | ShellCommandGetManFileNameLevel1 (VOID) |
EFI_STATUS EFIAPI | ShellLevel1CommandsLibConstructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
EFI_STATUS EFIAPI | ShellLevel1CommandsLibDestructor (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable) |
BOOLEAN | TestNodeForMove (IN CONST LIST_MANIP_FUNC Function, IN CONST CHAR16 *DecrementerTag, IN CONST CHAR16 *IncrementerTag, IN CONST CHAR16 *Label OPTIONAL, IN OUT SCRIPT_FILE *ScriptFile, IN CONST BOOLEAN MovePast, IN CONST BOOLEAN FindOnly, IN CONST SCRIPT_COMMAND_LIST *CommandNode, IN OUT UINTN *TargetCount) |
BOOLEAN | MoveToTag (IN CONST LIST_MANIP_FUNC Function, IN CONST CHAR16 *DecrementerTag, IN CONST CHAR16 *IncrementerTag, IN CONST CHAR16 *Label OPTIONAL, IN OUT SCRIPT_FILE *ScriptFile, IN CONST BOOLEAN MovePast, IN CONST BOOLEAN FindOnly, IN CONST BOOLEAN WrapAroundScript) |
Variables | |
STATIC CONST CHAR16 | mFileName [] = L"ShellCommands" |
EFI_HII_HANDLE | gShellLevel1HiiHandle = NULL |
Main file for NULL named library for level 1 shell command functions.
(C) Copyright 2013 Hewlett-Packard Development Company, L.P.
Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file UefiShellLevel1CommandsLib.c.
BOOLEAN MoveToTag | ( | IN CONST LIST_MANIP_FUNC | Function, |
IN CONST CHAR16 * | DecrementerTag, | ||
IN CONST CHAR16 * | IncrementerTag, | ||
IN CONST CHAR16 *Label | OPTIONAL, | ||
IN OUT SCRIPT_FILE * | ScriptFile, | ||
IN CONST BOOLEAN | MovePast, | ||
IN CONST BOOLEAN | FindOnly, | ||
IN CONST BOOLEAN | WrapAroundScript | ||
) |
Move the script pointer from 1 tag (line) to another.
It functions so that count starts at 1 and it increases or decreases when it hits the specified tags. when it hits zero the location has been found.
DecrementerTag and IncrementerTag are used to get around for/endfor and similar paired types where the entire middle should be ignored.
If label is used it will be used instead of the count.
[in] | Function | The function to use to enumerate through the list. Normally GetNextNode or GetPreviousNode. |
[in] | DecrementerTag | The tag to decrement the count at. |
[in] | IncrementerTag | The tag to increment the count at. |
[in] | Label | A label to look for. |
[in,out] | ScriptFile | The pointer to the current script file structure. |
[in] | MovePast | TRUE makes function return 1 past the found location. |
[in] | FindOnly | TRUE to not change the ScriptFile. |
[in] | WrapAroundScript | TRUE to wrap end-to-beginning or vise versa in searching. |
Definition at line 250 of file UefiShellLevel1CommandsLib.c.
CONST CHAR16 *EFIAPI ShellCommandGetManFileNameLevel1 | ( | VOID | ) |
Return the help text filename. Only used if no HII information found.
the | filename. |
Definition at line 22 of file UefiShellLevel1CommandsLib.c.
EFI_STATUS EFIAPI ShellLevel1CommandsLibConstructor | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Constructor for the Shell Level 1 Commands library.
Install the handlers for level 1 UEFI Shell 2.0 commands.
ImageHandle | the image handle of the process |
SystemTable | the EFI System Table pointer |
EFI_SUCCESS | the shell command handlers were installed successfully |
EFI_UNSUPPORTED | the shell level required was not found. |
Definition at line 42 of file UefiShellLevel1CommandsLib.c.
EFI_STATUS EFIAPI ShellLevel1CommandsLibDestructor | ( | IN EFI_HANDLE | ImageHandle, |
IN EFI_SYSTEM_TABLE * | SystemTable | ||
) |
Destructor for the library. free any resources.
ImageHandle | The image handle of the process. |
SystemTable | The EFI System Table pointer. |
Definition at line 83 of file UefiShellLevel1CommandsLib.c.
BOOLEAN TestNodeForMove | ( | IN CONST LIST_MANIP_FUNC | Function, |
IN CONST CHAR16 * | DecrementerTag, | ||
IN CONST CHAR16 * | IncrementerTag, | ||
IN CONST CHAR16 *Label | OPTIONAL, | ||
IN OUT SCRIPT_FILE * | ScriptFile, | ||
IN CONST BOOLEAN | MovePast, | ||
IN CONST BOOLEAN | FindOnly, | ||
IN CONST SCRIPT_COMMAND_LIST * | CommandNode, | ||
IN OUT UINTN * | TargetCount | ||
) |
Test a node to see if meets the criterion.
It functions so that count starts at 1 and it increases or decreases when it hits the specified tags. when it hits zero the location has been found.
DecrementerTag and IncrementerTag are used to get around for/endfor and similar paired types where the entire middle should be ignored.
If label is used it will be used instead of the count.
[in] | Function | The function to use to enumerate through the list. Normally GetNextNode or GetPreviousNode. |
[in] | DecrementerTag | The tag to decrement the count at. |
[in] | IncrementerTag | The tag to increment the count at. |
[in] | Label | A label to look for. |
[in,out] | ScriptFile | The pointer to the current script file structure. |
[in] | MovePast | TRUE makes function return 1 past the found location. |
[in] | FindOnly | TRUE to not change the ScriptFile. |
[in] | CommandNode | The pointer to the Node to test. |
[in,out] | TargetCount | The pointer to the current count. |
Definition at line 119 of file UefiShellLevel1CommandsLib.c.
EFI_HII_HANDLE gShellLevel1HiiHandle = NULL |
Definition at line 13 of file UefiShellLevel1CommandsLib.c.
Definition at line 12 of file UefiShellLevel1CommandsLib.c.