26 CONST CHAR16 *ConstEnvNameList;
28 ConstEnvNameList = gEfiShellProtocol->GetEnv (
NULL);
29 if (ConstEnvNameList ==
NULL) {
33 while (*ConstEnvNameList != CHAR_NULL) {
34 Value = gEfiShellProtocol->GetEnv (ConstEnvNameList);
36 ConstEnvNameList +=
StrLen (ConstEnvNameList)+1;
63 CONST CHAR16 *KeyName;
87 if (EFI_ERROR (Status)) {
88 if ((Status == EFI_VOLUME_CORRUPTED) && (ProblemParam !=
NULL)) {
112 if (KeyName ==
NULL) {
117 if (EFI_ERROR (Status)) {
133 if ((KeyName !=
NULL) && (Value !=
NULL)) {
138 if (EFI_ERROR (Status)) {
143 if (KeyName !=
NULL) {
167 return (ShellStatus);
UINTN EFIAPI StrLen(IN CONST CHAR16 *String)
VOID EFIAPI FreePool(IN VOID *Buffer)
#define ASSERT_EFI_ERROR(StatusParameter)
@ SHELL_INVALID_PARAMETER
SHELL_STATUS EFIAPI ShellCommandRunSet(IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
SHELL_STATUS PrintAllShellEnvVars(VOID)
EFI_STATUS EFIAPI CommandInit(VOID)
CONST CHAR16 *EFIAPI ShellCommandLineGetValue(IN CONST LIST_ENTRY *CheckPackage, IN CHAR16 *KeyString)
EFI_STATUS EFIAPI ShellSetEnvironmentVariable(IN CONST CHAR16 *EnvKey, IN CONST CHAR16 *EnvVal, IN BOOLEAN Volatile)
#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").
CONST CHAR16 *EFIAPI ShellGetEnvironmentVariable(IN CONST CHAR16 *EnvKey)
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)