14#ifndef _SHELL_ENVIRONMENT_VARIABLE_HEADER_
15#define _SHELL_ENVIRONMENT_VARIABLE_HEADER_
55#define SHELL_DELETE_ENVIRONMENT_VARIABLE(EnvVarName) \
56 (gRT->SetVariable((CHAR16*)EnvVarName, \
57 &gShellVariableGuid, \
75#define SHELL_SET_ENVIRONMENT_VARIABLE_NV(EnvVarName, BufferSize, Buffer) \
76 (gRT->SetVariable((CHAR16*)EnvVarName, \
77 &gShellVariableGuid, \
78 EFI_VARIABLE_NON_VOLATILE|EFI_VARIABLE_BOOTSERVICE_ACCESS, \
95#define SHELL_GET_ENVIRONMENT_VARIABLE(EnvVarName, BufferSize, Buffer) \
96 (gRT->GetVariable((CHAR16*)EnvVarName, \
97 &gShellVariableGuid, \
116#define SHELL_GET_ENVIRONMENT_VARIABLE_AND_ATTRIBUTES(EnvVarName, Atts, BufferSize, Buffer) \
117 (gRT->GetVariable((CHAR16*)EnvVarName, \
118 &gShellVariableGuid, \
136#define SHELL_SET_ENVIRONMENT_VARIABLE_V(EnvVarName, BufferSize, Buffer) \
137 (gRT->SetVariable((CHAR16*)EnvVarName, \
138 &gShellVariableGuid, \
139 EFI_VARIABLE_BOOTSERVICE_ACCESS, \
223 OUT UINT32 *Atts OPTIONAL
EFI_STATUS ShellFindEnvVarInList(IN CONST CHAR16 *Key, OUT CHAR16 **Value, OUT UINTN *ValueSize, OUT UINT32 *Atts OPTIONAL)
EFI_STATUS SetEnvironmentVariableList(IN LIST_ENTRY *List)
EFI_STATUS GetEnvironmentVariableList(IN OUT LIST_ENTRY *List)
EFI_STATUS ShellInitEnvVarList(VOID)
EFI_STATUS IsVolatileEnv(IN CONST CHAR16 *EnvVarName, OUT BOOLEAN *Volatile)
EFI_STATUS ShellAddEnvVarToList(IN CONST CHAR16 *Key, IN CONST CHAR16 *Value, IN UINTN ValueSize, IN UINT32 Atts)
EFI_STATUS ShellRemvoeEnvVarFromList(IN CONST CHAR16 *Key)
VOID FreeEnvironmentVariableList(IN LIST_ENTRY *List)
VOID ShellFreeEnvVarList(VOID)
EFI_STATUS SetEnvironmentVariables(IN CONST CHAR16 **Environment)