summaryrefslogtreecommitdiff
path: root/ShellPkg/Application/Shell/ShellProtocol.h
diff options
context:
space:
mode:
authorRuiyu Ni <ruiyu.ni@intel.com>2016-07-14 15:04:38 +0800
committerRuiyu Ni <ruiyu.ni@intel.com>2016-07-18 10:55:05 +0800
commit9168df3dea65f707d1e9c32eba5e18ef6b84e5cd (patch)
tree299d22067978edec56176b997245a0abdf1fe5f4 /ShellPkg/Application/Shell/ShellProtocol.h
parentffbc60a02757fe430448d7ad022d04cec133ba5d (diff)
downloadedk2-platforms-9168df3dea65f707d1e9c32eba5e18ef6b84e5cd.tar.xz
ShellPkg/ShellProtocol.c: Handle memory allocation failure
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
Diffstat (limited to 'ShellPkg/Application/Shell/ShellProtocol.h')
-rw-r--r--ShellPkg/Application/Shell/ShellProtocol.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/ShellPkg/Application/Shell/ShellProtocol.h b/ShellPkg/Application/Shell/ShellProtocol.h
index 5a7638920d..4f701cb749 100644
--- a/ShellPkg/Application/Shell/ShellProtocol.h
+++ b/ShellPkg/Application/Shell/ShellProtocol.h
@@ -3,7 +3,7 @@
manipulation, and initialization of EFI_SHELL_PROTOCOL.
(C) Copyright 2014 Hewlett-Packard Development Company, L.P.<BR>
- Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -49,7 +49,7 @@ CreatePopulateInstallShellProtocol (
);
/**
- Opposite of CreatePopulateInstallShellProtocol.
+ Opposite of CreatePopulateInstallShellProtocol.
Free all memory and restore the system to the state it was in before calling
CreatePopulateInstallShellProtocol.
@@ -59,12 +59,23 @@ CreatePopulateInstallShellProtocol (
@retval EFI_SUCCESS The operation was successful.
**/
EFI_STATUS
-EFIAPI
CleanUpShellProtocol (
IN OUT EFI_SHELL_PROTOCOL *NewShell
);
/**
+ Cleanup the shell environment.
+
+ @param[in, out] NewShell The pointer to the new shell protocol structure.
+
+ @retval EFI_SUCCESS The operation was successful.
+**/
+EFI_STATUS
+CleanUpShellEnvironment (
+ IN OUT EFI_SHELL_PROTOCOL *NewShell
+ );
+
+/**
This function creates a mapping for a device path.
@param DevicePath Points to the device path. If this is NULL and Mapping points to a valid mapping,