45 EDIT_FILE_TYPE WhatToDo;
54 WhatToDo = FileTypeNone;
69 if (EFI_ERROR (Status)) {
70 if ((Status == EFI_VOLUME_CORRUPTED) && (ProblemParam !=
NULL)) {
89 WhatToDo = FileTypeDiskBuffer;
95 if ((Offset == (
UINTN)-1) || (Size == (
UINTN)-1)) {
117 WhatToDo = FileTypeFileBuffer;
133 WhatToDo = FileTypeMemBuffer;
140 if ((WhatToDo == FileTypeNone) && (Name !=
NULL)) {
148 WhatToDo = FileTypeFileBuffer;
150 }
else if (WhatToDo == FileTypeNone) {
151 if (gEfiShellProtocol->GetCurDir (
NULL) ==
NULL) {
157 WhatToDo = FileTypeFileBuffer;
161 if ((ShellStatus ==
SHELL_SUCCESS) && (WhatToDo == FileTypeNone)) {
174 if (EFI_ERROR (Status)) {
181 case FileTypeFileBuffer:
183 Name ==
NULL ? L
"" : Name,
194 case FileTypeDiskBuffer:
197 Name ==
NULL ? L
"" : Name,
207 case FileTypeMemBuffer:
221 Status = EFI_NOT_FOUND;
225 if (!EFI_ERROR (Status)) {
230 if (Status != EFI_OUT_OF_RESOURCES) {
243 if (EFI_ERROR (Status)) {
252 if (Status == EFI_OUT_OF_RESOURCES) {
254 }
else if (EFI_ERROR (Status)) {
255 if (Buffer !=
NULL) {
256 if (
StrCmp (Buffer, L
"") != 0) {
273 SHELL_FREE_NON_NULL (Buffer);
274 SHELL_FREE_NON_NULL (NewName);
INTN EFIAPI StrCmp(IN CONST CHAR16 *FirstString, IN CONST CHAR16 *SecondString)
EFI_STATUS HBufferImageRead(IN CONST CHAR16 *FileName, IN CONST CHAR16 *DiskName, IN UINTN DiskOffset, IN UINTN DiskSize, IN UINTN MemOffset, IN UINTN MemSize, IN EDIT_FILE_TYPE BufferType, IN BOOLEAN Recover)
CONST CHAR16 * StatusBarGetString(VOID)
VOID EFIAPI FreePool(IN VOID *Buffer)
SHELL_STATUS EFIAPI ShellCommandRunHexEdit(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
EFI_STATUS HMainEditorKeyInput(VOID)
VOID HMainEditorBackup(VOID)
EFI_STATUS HMainEditorRefresh(VOID)
EFI_STATUS HMainEditorCleanup(VOID)
EFI_STATUS HMainEditorInit(VOID)
#define ASSERT_EFI_ERROR(StatusParameter)
@ SHELL_INVALID_PARAMETER
EFI_STATUS EFIAPI CommandInit(VOID)
CONST CHAR16 *EFIAPI ShellGetCurrentDir(IN CHAR16 *CONST DeviceName OPTIONAL)
UINTN EFIAPI ShellStrToUintn(IN CONST CHAR16 *String)
#define ShellCommandLineParse(CheckList, CheckPackage, ProblemParam, AutoPageBreak)
Make it easy to upgrade from older versions of the shell library.
EFI_STATUS EFIAPI ShellPrintHiiEx(IN INT32 Col OPTIONAL, IN INT32 Row OPTIONAL, IN CONST CHAR8 *Language OPTIONAL, IN CONST EFI_STRING_ID HiiFormatStringId, IN CONST EFI_HII_HANDLE HiiFormatHandle,...)
BOOLEAN EFIAPI ShellCommandLineGetFlag(IN CONST LIST_ENTRY *CONST CheckPackage, IN CONST CHAR16 *CONST KeyString)
@ TypeFlag
A flag that is present or not present only (IE "-a").
VOID EFIAPI ShellCommandLineFreeVarList(IN LIST_ENTRY *CheckPackage)
EFI_STATUS EFIAPI ShellInitialize(VOID)
EFI_STATUS EFIAPI ShellPrintEx(IN INT32 Col OPTIONAL, IN INT32 Row OPTIONAL, IN CONST CHAR16 *Format,...)
CONST CHAR16 *EFIAPI ShellCommandLineGetRawValue(IN CONST LIST_ENTRY *CONST CheckPackage, IN UINTN Position)
UINTN EFIAPI ShellCommandLineGetCount(IN CONST LIST_ENTRY *CheckPackage)
CHAR16 *EFIAPI CatSPrint(IN CHAR16 *String OPTIONAL, IN CONST CHAR16 *FormatString,...)
BOOLEAN IsValidFileName(IN CONST CHAR16 *Name)
CHAR16 * EditGetDefaultFileName(IN CONST CHAR16 *Extension)
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL * ConOut