summaryrefslogtreecommitdiff
path: root/ShellPkg/Application/Shell/ShellParametersProtocol.h
diff options
context:
space:
mode:
authorJaben Carsey <Jaben.carsey@intel.com>2015-01-27 18:56:36 +0000
committerjcarsey <jcarsey@Edk2>2015-01-27 18:56:36 +0000
commit14030c5c854ea40487a853344fc763d808c1a88b (patch)
treea5041fc9052c4f480b598b7e73d6c8e059263310 /ShellPkg/Application/Shell/ShellParametersProtocol.h
parentfdd52bde510a5cb89ce90c307c62e617c10ab7be (diff)
downloadedk2-platforms-14030c5c854ea40487a853344fc763d808c1a88b.tar.xz
ShellPkg: refine command line parsing
Correctly divide up parameters for Argc/Argv including quote ("), escape (^), and space ( ) processing. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jaben Carsey <Jaben.carsey@intel.com> Reviewed-by: Joe Peterson <joe.peterson@intel.com> Reviewed-by: Tapan Shah <tapandshah@hp.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16673 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Application/Shell/ShellParametersProtocol.h')
-rw-r--r--ShellPkg/Application/Shell/ShellParametersProtocol.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ShellPkg/Application/Shell/ShellParametersProtocol.h b/ShellPkg/Application/Shell/ShellParametersProtocol.h
index 15b76b7691..2fd8f8c88b 100644
--- a/ShellPkg/Application/Shell/ShellParametersProtocol.h
+++ b/ShellPkg/Application/Shell/ShellParametersProtocol.h
@@ -192,8 +192,10 @@ ParseCommandLineToArgs(
@param[in, out] TempParameter pointer to string of command line item extracted.
@param[in] Length Length of (*TempParameter) in bytes
+ @return EFI_INALID_PARAMETER A required parameter was NULL or pointed to a NULL or empty string.
+ @return EFI_NOT_FOUND A closing " could not be found on the specified string
**/
-VOID
+EFI_STATUS
EFIAPI
GetNextParameter(
IN OUT CHAR16 **Walker,