27 CONST CHAR16 *ConstAliasVal;
32 ConstAliasVal = gEfiShellProtocol->GetAlias (Alias, &Volatile);
33 if (ConstAliasVal ==
NULL) {
58 CONST CHAR16 *ConstAllAliasList;
62 ConstAllAliasList = gEfiShellProtocol->GetAlias (
NULL,
NULL);
63 if (ConstAllAliasList ==
NULL) {
72 Walker = (CHAR16 *)ConstAllAliasList;
76 Walker =
StrStr (Alias, L
";");
78 Walker[0] = CHAR_NULL;
83 }
while (Walker !=
NULL && Walker[0] != CHAR_NULL);
123 Status = gEfiShellProtocol->SetAlias (Command, Alias, Replace, Volatile);
124 if (EFI_ERROR (Status)) {
125 if (Status == EFI_ACCESS_DENIED) {
128 }
else if (Status == EFI_NOT_FOUND) {
161 CHAR16 *ProblemParam;
163 CONST CHAR16 *Param1;
164 CONST CHAR16 *Param2;
165 CONST CHAR16 *ParamStrD;
168 BOOLEAN VolatileFlag;
187 if (EFI_ERROR (Status)) {
188 if ((Status == EFI_VOLUME_CORRUPTED) && (ProblemParam !=
NULL)) {
202 if (Param2 !=
NULL) {
204 if (CleanParam2 ==
NULL) {
209 if ((CleanParam2[0] == L
'\"') && (CleanParam2[
StrLen (CleanParam2)-1] == L
'\"')) {
210 CleanParam2[
StrLen (CleanParam2)-1] = L
'\0';
211 CopyMem (CleanParam2, CleanParam2 + 1,
StrSize (CleanParam2) -
sizeof (CleanParam2[0]));
215 if (!DeleteFlag && !VolatileFlag) {
239 }
else if (DeleteFlag) {
245 if (ParamStrD ==
NULL) {
259 ASSERT (VolatileFlag);
260 ASSERT (!DeleteFlag);
285 SHELL_FREE_NON_NULL (CleanParam2);
286 return (ShellStatus);
SHELL_STATUS PrintAllShellAlias(VOID)
SHELL_STATUS PrintSingleShellAlias(IN CONST CHAR16 *Alias)
SHELL_STATUS EFIAPI ShellCommandRunAlias(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
SHELL_STATUS ShellLevel3CommandsLibSetAlias(IN CONST CHAR16 *Command, IN CONST CHAR16 *Alias, IN BOOLEAN Replace, IN BOOLEAN Volatile)
UINTN EFIAPI StrSize(IN CONST CHAR16 *String)
UINTN EFIAPI StrLen(IN CONST CHAR16 *String)
CHAR16 *EFIAPI StrStr(IN CONST CHAR16 *String, IN CONST CHAR16 *SearchString)
VOID *EFIAPI CopyMem(OUT VOID *DestinationBuffer, IN CONST VOID *SourceBuffer, IN UINTN Length)
VOID *EFIAPI AllocateZeroPool(IN UINTN AllocationSize)
VOID EFIAPI FreePool(IN VOID *Buffer)
VOID *EFIAPI AllocateCopyPool(IN UINTN AllocationSize, IN CONST VOID *Buffer)
#define ASSERT_EFI_ERROR(StatusParameter)
@ SHELL_INVALID_PARAMETER
EFI_STATUS EFIAPI CommandInit(VOID)
BOOLEAN EFIAPI ShellCommandIsOnAliasList(IN CONST CHAR16 *Alias)
CONST CHAR16 *EFIAPI ShellCommandLineGetValue(IN CONST LIST_ENTRY *CheckPackage, IN CHAR16 *KeyString)
#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)
@ TypeValue
A flag that has some data following it with a space (IE "-a 1").
@ TypeFlag
A flag that is present or not present only (IE "-a").
VOID EFIAPI ShellCommandLineFreeVarList(IN LIST_ENTRY *CheckPackage)
EFI_STATUS EFIAPI ShellInitialize(VOID)
CONST CHAR16 *EFIAPI ShellCommandLineGetRawValue(IN CONST LIST_ENTRY *CONST CheckPackage, IN UINTN Position)
UINTN EFIAPI ShellCommandLineGetCount(IN CONST LIST_ENTRY *CheckPackage)