summaryrefslogtreecommitdiff
path: root/ShellPkg/Application/Shell/Shell.h
diff options
context:
space:
mode:
authorJaben Carsey <jaben.carsey@intel.com>2013-12-20 01:13:36 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2013-12-20 01:13:36 +0000
commit6bd644638de46eeecb50292b2851a5045ebf1cac (patch)
tree7b3fc27623cacc01edb4aab4ed4b1a8ee1c8a2fd /ShellPkg/Application/Shell/Shell.h
parent12a27a6d81246493ea4cf66e97172ff252ca38a2 (diff)
downloadedk2-platforms-6bd644638de46eeecb50292b2851a5045ebf1cac.tar.xz
ShellPkg: pre-verify split commands
This makes sure that all parts of commands split via pipe operation are valid before starting. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15011 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Application/Shell/Shell.h')
-rw-r--r--ShellPkg/Application/Shell/Shell.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/ShellPkg/Application/Shell/Shell.h b/ShellPkg/Application/Shell/Shell.h
index 4943fd19cb..9e5338244b 100644
--- a/ShellPkg/Application/Shell/Shell.h
+++ b/ShellPkg/Application/Shell/Shell.h
@@ -133,6 +133,32 @@ typedef enum {
} SHELL_OPERATION_TYPES;
/**
+ Converts the command line to it's post-processed form. this replaces variables and alias' per UEFI Shell spec.
+
+ @param[in,out] CmdLine pointer to the command line to update
+
+ @retval EFI_SUCCESS The operation was successful
+ @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
+ @return some other error occured
+**/
+EFI_STATUS
+EFIAPI
+ProcessCommandLineToFinal(
+ IN OUT CHAR16 **CmdLine
+ );
+
+/**
+ Function to update the shell variable "lasterror"
+
+ @param[in] ErrorCode the error code to put into lasterror
+**/
+EFI_STATUS
+EFIAPI
+SetLastError(
+ IN CONST SHELL_STATUS ErrorCode
+ );
+
+/**
Sets all the alias' that were registered with the ShellCommandLib library.
@retval EFI_SUCCESS all init commands were run sucessfully.