]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Application/Shell/Shell.h
ShellPkg: Fix 'EfiShellExecute' doesn't get command status correctly.
[mirror_edk2.git] / ShellPkg / Application / Shell / Shell.h
index b6686256aac3aa49cdebff06b54c13e078ce2446..7c876510dd29f5d80ee08c9b3b361597414a251f 100644 (file)
@@ -293,6 +293,25 @@ RunCommand(
   IN CONST CHAR16   *CmdLine\r
   );\r
 \r
+/**\r
+  Function will process and run a command line.\r
+\r
+  This will determine if the command line represents an internal shell \r
+  command or dispatch an external application.\r
+\r
+  @param[in] CmdLine      The command line to parse.\r
+  @param[out] CommandStatus   The status from the command line.\r
+\r
+  @retval EFI_SUCCESS     The command was completed.\r
+  @retval EFI_ABORTED     The command's operation was aborted.\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+RunShellCommand(\r
+  IN CONST CHAR16   *CmdLine,\r
+  OUT EFI_STATUS    *CommandStatus\r
+  );\r
+\r
 /**\r
   Function determines if the CommandName COULD be a valid command.  It does not determine whether\r
   this is a valid command.  It only checks for invalid characters.\r