| 1 |
/** @file |
| 2 |
EFI_SHELL_PARAMETERS_PROTOCOL as defined in the UEFI Shell 2.0 specification. |
| 3 |
|
| 4 |
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR> |
| 5 |
This program and the accompanying materials |
| 6 |
are licensed and made available under the terms and conditions of the BSD License |
| 7 |
which accompanies this distribution. The full text of the license may be found at |
| 8 |
http://opensource.org/licenses/bsd-license.php |
| 9 |
|
| 10 |
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, |
| 11 |
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. |
| 12 |
|
| 13 |
**/ |
| 14 |
/* |
| 15 |
* This is based on ShellPkg/Include/Protocol/EfiShellParameters.h from EDK II. |
| 16 |
*/ |
| 17 |
|
| 18 |
#ifndef __EFI_SHELL_PARAMETERS_PROTOCOL__ |
| 19 |
#define __EFI_SHELL_PARAMETERS_PROTOCOL__ |
| 20 |
|
| 21 |
|
| 22 |
// EDK2's ShellBase.h |
| 23 |
typedef VOID *SHELL_FILE_HANDLE; |
| 24 |
|
| 25 |
#define EFI_SHELL_PARAMETERS_PROTOCOL_GUID \ |
| 26 |
{ \ |
| 27 |
0x752f3136, 0x4e16, 0x4fdc, { 0xa2, 0x2a, 0xe5, 0xf4, 0x68, 0x12, 0xf4, 0xca } \ |
| 28 |
} |
| 29 |
|
| 30 |
typedef struct _EFI_SHELL_PARAMETERS_PROTOCOL { |
| 31 |
/// |
| 32 |
/// Points to an Argc-element array of points to NULL-terminated strings containing |
| 33 |
/// the command-line parameters. The first entry in the array is always the full file |
| 34 |
/// path of the executable. Any quotation marks that were used to preserve |
| 35 |
/// whitespace have been removed. |
| 36 |
/// |
| 37 |
CHAR16 **Argv; |
| 38 |
|
| 39 |
/// |
| 40 |
/// The number of elements in the Argv array. |
| 41 |
/// |
| 42 |
UINTN Argc; |
| 43 |
|
| 44 |
/// |
| 45 |
/// The file handle for the standard input for this executable. This may be different |
| 46 |
/// from the ConInHandle in EFI_SYSTEM_TABLE. |
| 47 |
/// |
| 48 |
SHELL_FILE_HANDLE StdIn; |
| 49 |
|
| 50 |
/// |
| 51 |
/// The file handle for the standard output for this executable. This may be different |
| 52 |
/// from the ConOutHandle in EFI_SYSTEM_TABLE. |
| 53 |
/// |
| 54 |
SHELL_FILE_HANDLE StdOut; |
| 55 |
|
| 56 |
/// |
| 57 |
/// The file handle for the standard error output for this executable. This may be |
| 58 |
/// different from the StdErrHandle in EFI_SYSTEM_TABLE. |
| 59 |
/// |
| 60 |
SHELL_FILE_HANDLE StdErr; |
| 61 |
} EFI_SHELL_PARAMETERS_PROTOCOL; |
| 62 |
|
| 63 |
#endif |