]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/Shell/ShellParametersProtocol.h
ShellPkg: Refactor string manipulation
[mirror_edk2.git] / ShellPkg / Application / Shell / ShellParametersProtocol.h
index b63e1d394f9fdd8dfb9956c98ad357211ce6b80a..15b76b76918605d03e6efc61beaa8e039cd485e4 100644 (file)
@@ -2,7 +2,7 @@
   Member functions of EFI_SHELL_PARAMETERS_PROTOCOL and functions for creation,\r
   manipulation, and initialization of EFI_SHELL_PARAMETERS_PROTOCOL.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
 #ifndef _SHELL_PARAMETERS_PROTOCOL_PROVIDER_HEADER_\r
 #define _SHELL_PARAMETERS_PROTOCOL_PROVIDER_HEADER_\r
 \r
-#include <Uefi.h>\r
-\r
-#include <Protocol/SimpleFileSystem.h>\r
-#include <Protocol/EfiShellParameters.h>\r
-#include <Protocol/LoadedImage.h>\r
-#include <Protocol/SimpleTextOut.h>\r
-#include <Protocol/SimpleTextIn.h>\r
-\r
-#include <Guid/ShellVariableGuid.h>\r
-\r
-#include <Library/UefiBootServicesTableLib.h>\r
-#include <Library/UefiRuntimeServicesTableLib.h>\r
-#include <Library/MemoryAllocationLib.h>\r
-#include <Library/UefiLib.h>\r
-#include <Library/DebugLib.h>\r
-#include <Library/ShellLib.h>\r
-#include <Library/FileHandleLib.h>\r
-\r
-#include "ShellEnvVar.h"\r
-#include "FileHandleWrappers.h"\r
 #include "Shell.h"\r
 \r
 /**\r
@@ -123,8 +103,8 @@ typedef struct {
   EFI_HANDLE                            ConInHandle;\r
   EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL       *ConOut;\r
   EFI_HANDLE                            ConOutHandle;\r
-  EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL       *ConErr;\r
-  EFI_HANDLE                            ConErrHandle;\r
+  EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL       *ErrOut;\r
+  EFI_HANDLE                            ErrOutHandle;\r
 } SYSTEM_TABLE_INFO;\r
 \r
 /**\r
@@ -210,13 +190,15 @@ ParseCommandLineToArgs(
   @param[in, out] Walker        pointer to string of command line.  Adjusted to\r
                                 reminaing command line on return\r
   @param[in, out] TempParameter pointer to string of command line item extracted.\r
+  @param[in]      Length        Length of (*TempParameter) in bytes\r
 \r
 **/\r
 VOID\r
 EFIAPI\r
 GetNextParameter(\r
-  CHAR16 **Walker,\r
-  CHAR16 **TempParameter\r
+  IN OUT CHAR16   **Walker,\r
+  IN OUT CHAR16   **TempParameter,\r
+  IN CONST UINTN  Length\r
   );\r
 \r
 #endif //_SHELL_PARAMETERS_PROTOCOL_PROVIDER_HEADER_\r