TianoCore EDK2 master
Loading...
Searching...
No Matches
UefiShellLib.h
Go to the documentation of this file.
1
10#ifndef _UEFI_SHELL_LIB_INTERNAL_H_
11#define _UEFI_SHELL_LIB_INTERNAL_H_
12
13#include <Uefi.h>
14
15#include <Guid/FileInfo.h>
16
21#include <Protocol/Shell.h>
24
26#include <Library/BaseLib.h>
28#include <Library/DebugLib.h>
31#include <Library/PcdLib.h>
33#include <Library/PrintLib.h>
34#include <Library/UefiLib.h>
35#include <Library/HiiLib.h>
36#include <Library/ShellLib.h>
37
38typedef struct {
42 EFI_SHELL_WRITE_FILE WriteFile;
44 EFI_SHELL_DELETE_FILE DeleteFile;
45 EFI_SHELL_GET_FILE_POSITION GetFilePosition;
46 EFI_SHELL_SET_FILE_POSITION SetFilePosition;
47 EFI_SHELL_FLUSH_FILE FlushFile;
50
64BOOLEAN
66 IN CONST CHAR16 *String,
67 IN CONST BOOLEAN ForceHex,
68 IN CONST BOOLEAN StopAtSpace,
69 IN CONST BOOLEAN TimeNumbers
70 );
71
84 IN CONST CHAR16 *OriginalString,
85 OUT CHAR16 **CleanString
86 );
87
88#endif
EFI_STATUS GetFileSize(IN EFI_BLOCK_IO_PROTOCOL *BlockIo, IN EFI_DISK_IO_PROTOCOL *DiskIo, IN UDF_VOLUME_INFO *Volume, IN UDF_FILE_INFO *File, OUT UINT64 *Size)
EFI_STATUS ReadFile(IN EFI_BLOCK_IO_PROTOCOL *BlockIo, IN EFI_DISK_IO_PROTOCOL *DiskIo, IN UDF_VOLUME_INFO *Volume, IN UDF_LONG_ALLOCATION_DESCRIPTOR *ParentIcb, IN VOID *FileEntryData, IN OUT UDF_READ_FILE_INFO *ReadFileInfo)
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_FILE_INFO *(EFIAPI * EFI_SHELL_GET_FILE_INFO)(IN SHELL_FILE_HANDLE FileHandle)
Definition: Shell.h:584
EFI_STATUS(EFIAPI * EFI_SHELL_SET_FILE_INFO)(IN SHELL_FILE_HANDLE FileHandle, IN CONST EFI_FILE_INFO *FileInfo)
Definition: Shell.h:1102
EFI_STATUS(EFIAPI * EFI_SHELL_CLOSE_FILE)(IN SHELL_FILE_HANDLE FileHandle)
Definition: Shell.h:187
EFI_STATUS(EFIAPI * EFI_SHELL_WRITE_FILE)(IN SHELL_FILE_HANDLE FileHandle, IN OUT UINTN *BufferSize, IN VOID *Buffer)
Definition: Shell.h:1174
EFI_STATUS(EFIAPI * EFI_SHELL_GET_FILE_POSITION)(IN SHELL_FILE_HANDLE FileHandle, OUT UINT64 *Position)
Definition: Shell.h:621
EFI_STATUS(EFIAPI * EFI_SHELL_DELETE_FILE)(IN SHELL_FILE_HANDLE FileHandle)
Definition: Shell.h:249
EFI_STATUS(EFIAPI * EFI_SHELL_READ_FILE)(IN SHELL_FILE_HANDLE FileHandle, IN OUT UINTN *ReadSize, IN OUT VOID *Buffer)
Definition: Shell.h:928
EFI_STATUS(EFIAPI * EFI_SHELL_SET_FILE_POSITION)(IN SHELL_FILE_HANDLE FileHandle, IN UINT64 Position)
Definition: Shell.h:1124
EFI_STATUS(EFIAPI * EFI_SHELL_GET_FILE_SIZE)(IN SHELL_FILE_HANDLE FileHandle, OUT UINT64 *Size)
Definition: Shell.h:639
EFI_STATUS(EFIAPI * EFI_SHELL_FLUSH_FILE)(IN SHELL_FILE_HANDLE FileHandle)
Definition: Shell.h:391
VOID CloseFile(IN EFI_FILE_HANDLE FileHandle)
STATIC EFI_STATUS GetFileInfo(IN SEMIHOST_FCB *Fcb, IN OUT UINTN *BufferSize, OUT VOID *Buffer)
Definition: SemihostFs.c:769
STATIC EFI_STATUS SetFileInfo(IN SEMIHOST_FCB *Fcb, IN EFI_FILE_INFO *Info)
Definition: SemihostFs.c:956
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
BOOLEAN InternalShellIsHexOrDecimalNumber(IN CONST CHAR16 *String, IN CONST BOOLEAN ForceHex, IN CONST BOOLEAN StopAtSpace, IN CONST BOOLEAN TimeNumbers)
EFI_STATUS InternalShellStripQuotes(IN CONST CHAR16 *OriginalString, OUT CHAR16 **CleanString)