50 if (
PcdGet8 (PcdShellSupportLevel) < 1) {
55 if (gShellLevel1HiiHandle ==
NULL) {
56 return (EFI_DEVICE_ERROR);
88 if (gShellLevel1HiiHandle !=
NULL) {
121 IN CONST CHAR16 *DecrementerTag,
122 IN CONST CHAR16 *IncrementerTag,
123 IN CONST CHAR16 *Label OPTIONAL,
133 CHAR16 *CommandNameWalker;
134 CHAR16 *TempLocation;
143 if (CommandName ==
NULL) {
147 CommandNameWalker = CommandName;
152 while ((CommandNameWalker[0] == L
' ') || (CommandNameWalker[0] == L
'\t')) {
156 TempLocation =
StrStr (CommandNameWalker, L
" ");
158 if (TempLocation !=
NULL) {
159 *TempLocation = CHAR_NULL;
165 if (gUnicodeCollation->StriColl (
167 (CHAR16 *)CommandNameWalker,
168 (CHAR16 *)IncrementerTag
172 }
else if (gUnicodeCollation->StriColl (
174 (CHAR16 *)CommandNameWalker,
175 (CHAR16 *)DecrementerTag
178 if (*TargetCount > 0) {
187 if (*TargetCount == 0) {
191 ScriptFile->CurrentCommand = (
SCRIPT_COMMAND_LIST *)(*Function)(&ScriptFile->CommandList, &CommandNode->Link);
198 if ( (gUnicodeCollation->StriColl (
200 (CHAR16 *)CommandNameWalker,
203 && ((*TargetCount) == 0))
211 ScriptFile->CurrentCommand = (
SCRIPT_COMMAND_LIST *)(*Function)(&ScriptFile->CommandList, &CommandNode->Link);
252 IN CONST CHAR16 *DecrementerTag,
253 IN CONST CHAR16 *IncrementerTag,
254 IN CONST CHAR16 *Label OPTIONAL,
258 IN CONST BOOLEAN WrapAroundScript
271 if (ScriptFile ==
NULL) {
275 for (CommandNode = (
SCRIPT_COMMAND_LIST *)(*Function)(&ScriptFile->CommandList, &ScriptFile->CurrentCommand->Link), Found =
FALSE
276 ; !
IsNull (&ScriptFile->CommandList, &CommandNode->
Link) && !Found
293 if (WrapAroundScript && !Found) {
295 ; CommandNode != ScriptFile->CurrentCommand && !Found
BOOLEAN EFIAPI IsNull(IN CONST LIST_ENTRY *List, IN CONST LIST_ENTRY *Node)
LIST_ENTRY *EFIAPI GetFirstNode(IN CONST LIST_ENTRY *List)
CHAR16 *EFIAPI StrStr(IN CONST CHAR16 *String, IN CONST CHAR16 *SearchString)
VOID EFIAPI FreePool(IN VOID *Buffer)
SHELL_STATUS EFIAPI ShellCommandRunExit(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
SHELL_STATUS EFIAPI ShellCommandRunEndFor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
SHELL_STATUS EFIAPI ShellCommandRunFor(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
SHELL_STATUS EFIAPI ShellCommandRunGoto(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_HII_HANDLE EFIAPI HiiAddPackages(IN CONST EFI_GUID *PackageListGuid, IN EFI_HANDLE DeviceHandle OPTIONAL,...)
VOID EFIAPI HiiRemovePackages(IN EFI_HII_HANDLE HiiHandle)
SHELL_STATUS EFIAPI ShellCommandRunEndIf(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
SHELL_STATUS EFIAPI ShellCommandRunElse(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
SHELL_STATUS EFIAPI ShellCommandRunIf(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
#define PcdGet8(TokenName)
RETURN_STATUS EFIAPI ShellCommandRegisterCommandName(IN CONST CHAR16 *CommandString, IN SHELL_RUN_COMMAND CommandHandler, IN SHELL_GET_MAN_FILENAME GetManFileName, IN UINT32 ShellMinSupportLevel, IN CONST CHAR16 *ProfileName, IN CONST BOOLEAN CanAffectLE, IN CONST EFI_HII_HANDLE HiiHandle, IN CONST EFI_STRING_ID ManFormatHelp)
CHAR16 *EFIAPI StrnCatGrow(IN OUT CHAR16 **Destination, IN OUT UINTN *CurrentSize, IN CONST CHAR16 *Source, IN UINTN Count)
SHELL_STATUS EFIAPI ShellCommandRunStall(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
SHELL_STATUS EFIAPI ShellCommandRunShift(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
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 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)
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)
CONST CHAR16 *EFIAPI ShellCommandGetManFileNameLevel1(VOID)
LIST_ENTRY *(EFIAPI * LIST_MANIP_FUNC)(IN CONST LIST_ENTRY *List, IN CONST LIST_ENTRY *Node)
LIST_ENTRY Link
List enumerator items.