]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Include/Library/ShellCommandLib.h
BaseTools/GenSec: Return correct status when input file size is 0
[mirror_edk2.git] / ShellPkg / Include / Library / ShellCommandLib.h
index 44eccc447cb269f669e9674d28ac5b3a12dc14c5..08de1332c713938a8cdcadfcfbef400645ee23fe 100644 (file)
 #define _SHELL_COMMAND_LIB_\r
 \r
 #include <Uefi.h>\r
-#include <ShellBase.h>\r
 \r
-#include <Protocol/EfiShell.h>\r
-#include <Protocol/EfiShellParameters.h>\r
+#include <Protocol/Shell.h>\r
+#include <Protocol/ShellParameters.h>\r
 #include <Protocol/UnicodeCollation.h>\r
 #include <Protocol/SimpleFileSystem.h>\r
 \r
@@ -670,29 +669,6 @@ ShellFileHandleEof(
   IN SHELL_FILE_HANDLE Handle\r
   );\r
 \r
-/**\r
-  Function to get the original CmdLine string for current command.\r
-\r
-  @return     A pointer to the buffer of the original command string.\r
-              It's the caller's responsibility to free the buffer.\r
-**/\r
-CHAR16*\r
-EFIAPI\r
-ShellGetRawCmdLine (\r
-  VOID\r
-  );\r
-\r
-/**\r
-  Function to store the orgignal command string into mOriginalCmdLine.\r
-\r
-  @param[in] CmdLine     the command line string to store.\r
-**/\r
-VOID\r
-EFIAPI\r
-ShellSetRawCmdLine (\r
-  IN CONST CHAR16     *CmdLine\r
-  );\r
-\r
 typedef struct {\r
   LIST_ENTRY    Link;\r
   void          *Buffer;\r
@@ -742,49 +718,4 @@ CatSDumpHex (
   IN UINTN   DataSize,\r
   IN VOID    *UserData\r
   );\r
-\r
-/**\r
-  Return the pointer to the first occurrence of any character from a list of characters.\r
-\r
-  @param[in] String                 The string to parse\r
-  @param[in] CharacterList          The list of character to look for\r
-  @param[in] IgnoreEscapedCharacter TRUE to ignore escaped characters\r
-\r
-  @return The location of the first character in the String.\r
-  @return Pointer to the ending NULL character of the String.\r
-**/\r
-CONST CHAR16*\r
-EFIAPI\r
-ShellFindFirstCharacter (\r
-  IN CONST CHAR16  *String,\r
-  IN CONST CHAR16  *CharacterList,\r
-  IN CONST BOOLEAN IgnoreEscapedCharacter\r
-  );\r
-\r
-/**\r
-  return the next parameter from a command line string;\r
-\r
-  This function moves the next parameter from Walker into NextParameter and moves\r
-  Walker up past that parameter for recursive calling.  When the final parameter\r
-  is moved *Walker will be set to NULL;\r
-\r
-  @param[in, out] Walker          pointer to string of command line.  Adjusted to\r
-                                  reminaing command line on return\r
-  @param[in, out] NextParameter   string of command line item extracted.\r
-  @param[in]      Length          Length of TempParameter in bytes\r
-  @param[in]      StripQuotation  if TRUE then strip the quotation marks surrounding\r
-                                  the parameters.\r
-\r
-  @return   EFI_INALID_PARAMETER  A required parameter was NULL or pointed to a NULL or empty string.\r
-  @return   EFI_NOT_FOUND         A closing " could not be found on the specified string\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-ShellGetNextParameter(\r
-  IN OUT CHAR16   **Walker,\r
-  IN OUT CHAR16   *NextParameter,\r
-  IN CONST UINTN  Length,\r
-  IN BOOLEAN      StripQuotation\r
-  );\r
-\r
 #endif //_SHELL_COMMAND_LIB_\r