summaryrefslogtreecommitdiffstats
path: root/ShellPkg/Include/Protocol
diff options
context:
space:
mode:
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-19 19:53:58 +0000
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>2009-11-19 19:53:58 +0000
commitef34de257bd1956c1f6e6f93ba7dda64b17a41ea (patch)
treeb8f2512ea3a548a4dc1a232bc679d3c9bf3040fb /ShellPkg/Include/Protocol
parent125c2cf4f152760920ee4b1e5d73e03daf02d394 (diff)
downloadedk2-ef34de257bd1956c1f6e6f93ba7dda64b17a41ea.tar.gz
edk2-ef34de257bd1956c1f6e6f93ba7dda64b17a41ea.tar.bz2
edk2-ef34de257bd1956c1f6e6f93ba7dda64b17a41ea.zip
fixing errors found in code review.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9450 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'ShellPkg/Include/Protocol')
-rw-r--r--ShellPkg/Include/Protocol/EfiShell.h12
-rw-r--r--ShellPkg/Include/Protocol/EfiShellParameters.h25
2 files changed, 31 insertions, 6 deletions
diff --git a/ShellPkg/Include/Protocol/EfiShell.h b/ShellPkg/Include/Protocol/EfiShell.h
index 8b489dac6b..11ee58a75c 100644
--- a/ShellPkg/Include/Protocol/EfiShell.h
+++ b/ShellPkg/Include/Protocol/EfiShell.h
@@ -26,12 +26,12 @@
// replaced EFI_LIST_ENTRY with LIST_ENTRY for simplicity.
// they are identical outside of the name.
typedef struct {
- LIST_ENTRY Link; /// Linked list members
- EFI_STATUS Status; /// Status of opening the file. Valid only if Handle != NULL.
- CONST CHAR16 *FullName; /// Fully qualified filename.
- CONST CHAR16 *FileName; /// name of this file.
- EFI_FILE_HANDLE Handle; /// Handle for interacting with the opened file or NULL if closed.
- EFI_FILE_INFO *Info; /// Pointer to the FileInfo struct for this file or NULL.
+ LIST_ENTRY Link; ///< Linked list members
+ EFI_STATUS Status; ///< Status of opening the file. Valid only if Handle != NULL.
+ CONST CHAR16 *FullName; ///< Fully qualified filename.
+ CONST CHAR16 *FileName; ///< name of this file.
+ EFI_FILE_HANDLE Handle; ///< Handle for interacting with the opened file or NULL if closed.
+ EFI_FILE_INFO *Info; ///< Pointer to the FileInfo struct for this file or NULL.
} EFI_SHELL_FILE_INFO;
/**
Returns whether any script files are currently being processed.
diff --git a/ShellPkg/Include/Protocol/EfiShellParameters.h b/ShellPkg/Include/Protocol/EfiShellParameters.h
index 49ad2fdc43..8f6658b6b5 100644
--- a/ShellPkg/Include/Protocol/EfiShellParameters.h
+++ b/ShellPkg/Include/Protocol/EfiShellParameters.h
@@ -21,10 +21,35 @@
}
typedef struct _EFI_SHELL_PARAMETERS_PROTOCOL {
+///
+/// Points to an Argc-element array of points to null-terminated strings containing
+/// the command-line parameters. The first entry in the array is always the full file
+/// path of the executable. Any quotation marks that were used to preserve
+/// whitespace have been removed.
+///
CHAR16 **Argv;
+
+///
+/// The number of elements in the Argv array.
+///
UINTN Argc;
+
+///
+/// The file handle for the standard input for this executable. This may be different
+/// from the ConInHandle in the EFI_SYSTEM_TABLE.
+///
EFI_FILE_HANDLE StdIn;
+
+///
+/// The file handle for the standard output for this executable. This may be different
+/// from the ConOutHandle in the EFI_SYSTEM_TABLE.
+///
EFI_FILE_HANDLE StdOut;
+
+///
+/// The file handle for the standard error output for this executable. This may be
+/// different from the StdErrHandle in the EFI_SYSTEM_TABLE.
+///
EFI_FILE_HANDLE StdErr;
} EFI_SHELL_PARAMETERS_PROTOCOL;