TianoCore EDK2 master
Loading...
Searching...
No Matches
ShellParametersProtocol.h
Go to the documentation of this file.
1
10#ifndef _SHELL_PARAMETERS_PROTOCOL_PROVIDER_HEADER_
11#define _SHELL_PARAMETERS_PROTOCOL_PROVIDER_HEADER_
12
13#include "Shell.h"
14
15typedef enum {
16 Internal_Command,
17 Script_File_Name,
18 Efi_Application,
19 File_Sys_Change,
20 Unknown_Invalid
21} SHELL_OPERATION_TYPES;
22
41 IN OUT EFI_SHELL_PARAMETERS_PROTOCOL **NewShellParameters,
42 IN OUT BOOLEAN *RootShellInstance
43 );
44
59 IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *NewShellParameters
60 );
61
79 IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters,
80 IN CONST CHAR16 *NewCommandLine,
81 IN SHELL_OPERATION_TYPES Type,
82 OUT CHAR16 ***OldArgv,
83 OUT UINTN *OldArgc
84 );
85
95VOID
97 IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters,
98 IN CHAR16 ***OldArgv,
99 IN UINTN *OldArgc
100 );
101
102typedef struct {
104 EFI_HANDLE ConInHandle;
106 EFI_HANDLE ConOutHandle;
108 EFI_HANDLE ErrOutHandle;
110
130 IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters,
131 IN CHAR16 *NewCommandLine,
132 OUT SHELL_FILE_HANDLE *OldStdIn,
133 OUT SHELL_FILE_HANDLE *OldStdOut,
134 OUT SHELL_FILE_HANDLE *OldStdErr,
135 OUT SYSTEM_TABLE_INFO *SystemTableInfo
136 );
137
150 IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters,
151 IN SHELL_FILE_HANDLE *OldStdIn,
152 IN SHELL_FILE_HANDLE *OldStdOut,
153 IN SHELL_FILE_HANDLE *OldStdErr,
154 IN SYSTEM_TABLE_INFO *SystemTableInfo
155 );
156
176 IN CONST CHAR16 *CommandLine,
177 IN BOOLEAN StripQuotation,
178 IN OUT CHAR16 ***Argv,
179 IN OUT UINTN *Argc
180 );
181
204 IN OUT CHAR16 **Walker,
205 IN OUT CHAR16 **TempParameter,
206 IN CONST UINTN Length,
207 IN BOOLEAN StripQuotation
208 );
209
210#endif //_SHELL_PARAMETERS_PROTOCOL_PROVIDER_HEADER_
UINT64 UINTN
#define CONST
Definition: Base.h:259
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS CreatePopulateInstallShellParametersProtocol(IN OUT EFI_SHELL_PARAMETERS_PROTOCOL **NewShellParameters, IN OUT BOOLEAN *RootShellInstance)
EFI_STATUS RestoreStdInStdOutStdErr(IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters, IN SHELL_FILE_HANDLE *OldStdIn, IN SHELL_FILE_HANDLE *OldStdOut, IN SHELL_FILE_HANDLE *OldStdErr, IN SYSTEM_TABLE_INFO *SystemTableInfo)
EFI_STATUS ParseCommandLineToArgs(IN CONST CHAR16 *CommandLine, IN BOOLEAN StripQuotation, IN OUT CHAR16 ***Argv, IN OUT UINTN *Argc)
VOID RestoreArgcArgv(IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters, IN CHAR16 ***OldArgv, IN UINTN *OldArgc)
EFI_STATUS CleanUpShellParametersProtocol(IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *NewShellParameters)
EFI_STATUS UpdateArgcArgv(IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters, IN CONST CHAR16 *NewCommandLine, IN SHELL_OPERATION_TYPES Type, OUT CHAR16 ***OldArgv, OUT UINTN *OldArgc)
EFI_STATUS GetNextParameter(IN OUT CHAR16 **Walker, IN OUT CHAR16 **TempParameter, IN CONST UINTN Length, IN BOOLEAN StripQuotation)
EFI_STATUS UpdateStdInStdOutStdErr(IN OUT EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters, IN CHAR16 *NewCommandLine, OUT SHELL_FILE_HANDLE *OldStdIn, OUT SHELL_FILE_HANDLE *OldStdOut, OUT SHELL_FILE_HANDLE *OldStdErr, OUT SYSTEM_TABLE_INFO *SystemTableInfo)
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33