build break fix and new function
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9461 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -718,8 +718,8 @@ ShellCommandLineGetFlag (
|
||||
|
||||
If CheckPackage is NULL, then return NULL.
|
||||
|
||||
@param CheckPackage The package of parsed command line arguments.
|
||||
@param KeyString The Key of the command line argument to check for.
|
||||
@param[in] CheckPackage The package of parsed command line arguments.
|
||||
@param[in] KeyString The Key of the command line argument to check for.
|
||||
|
||||
@retval NULL The flag is not on the command line.
|
||||
@retval !=NULL Pointer to unicode string of the value.
|
||||
@@ -736,10 +736,10 @@ ShellCommandLineGetValue (
|
||||
|
||||
Raw value parameters are in the form of "value" in a specific position in the list.
|
||||
|
||||
If CheckPackage is NULL, then return NULL;
|
||||
If CheckPackage is NULL, then return NULL.
|
||||
|
||||
@param CheckPackage The package of parsed command line arguments.
|
||||
@param Position The position of the value.
|
||||
@param[in] CheckPackage The package of parsed command line arguments.
|
||||
@param[in] Position The position of the value.
|
||||
|
||||
@retval NULL The flag is not on the command line.
|
||||
@retval !=NULL Pointer to unicode string of the value.
|
||||
@@ -765,6 +765,27 @@ ShellCommandLineGetCount(
|
||||
VOID
|
||||
);
|
||||
|
||||
/**
|
||||
Determins if a parameter is duplicated.
|
||||
|
||||
If Param is not NULL then it will point to a callee allocated string buffer
|
||||
with the parameter value if a duplicate is found.
|
||||
|
||||
If CheckPackage is NULL, then ASSERT.
|
||||
|
||||
@param[in] CheckPackage The package of parsed command line arguments.
|
||||
@param[out] Param Upon finding one, a pointer to the duplicated parameter.
|
||||
|
||||
@retval EFI_SUCCESS No parameters were duplicated.
|
||||
@retval EFI_DEVICE_ERROR A duplicate was found.
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
ShellCommandLineCheckDuplicate (
|
||||
IN CONST LIST_ENTRY *CheckPackage,
|
||||
OUT CHAR16 **Param
|
||||
);
|
||||
|
||||
/**
|
||||
This function causes the shell library to initialize itself. If the shell library
|
||||
is already initialized it will de-initialize all the current protocol poitners and
|
||||
|
@@ -791,7 +791,7 @@ EFI_STATUS
|
||||
If Alias is NULL, ReturnedData points to a <20>;<3B>
|
||||
delimited list of alias (e.g.
|
||||
ReturnedData = <20>dir;del;copy;mfp<66>) that is null-terminated.
|
||||
@retval NULL an error ocurred.
|
||||
@retval NULL An error ocurred.
|
||||
@retval NULL Alias was not a valid Alias.
|
||||
**/
|
||||
typedef
|
||||
|
@@ -21,35 +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.
|
||||
///
|
||||
///
|
||||
/// 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.
|
||||
///
|
||||
///
|
||||
/// 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.
|
||||
///
|
||||
///
|
||||
/// 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.
|
||||
///
|
||||
///
|
||||
/// 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.
|
||||
///
|
||||
///
|
||||
/// 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;
|
||||
|
||||
|
Reference in New Issue
Block a user