]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Include/Library/ShellCommandLib.h
ShellPkg: Add Shell[Get|Set]RawCmdLine to ShellCommandLib
[mirror_edk2.git] / ShellPkg / Include / Library / ShellCommandLib.h
index 5c5e241f1525e03b0a8713cd0dc5a9a83508b15c..44eccc447cb269f669e9674d28ac5b3a12dc14c5 100644 (file)
@@ -670,6 +670,29 @@ 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