2 EFI Shell Interface protocol from EDK shell (no spec).
4 Shell Interface - additional information (over image_info) provided
5 to an application started by the shell.
7 ConIo provides a file-style interface to the console.
9 The shell interface's and data (including ConIo) are only valid during
10 the applications Entry Point. Once the application returns from it's
11 entry point the data is freed by the invoking shell.
13 Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
14 SPDX-License-Identifier: BSD-2-Clause-Patent
18 #ifndef _SHELLINTERFACE_H_
19 #define _SHELLINTERFACE_H_
21 #include <Protocol/SimpleFileSystem.h>
23 #define SHELL_INTERFACE_PROTOCOL_GUID \
25 0x47c7b223, 0xc42a, 0x11d2, {0x8e, 0x57, 0x0, 0xa0, 0xc9, 0x69, 0x72, 0x3b} \
29 /// Bit definitions for EFI_SHELL_ARG_INFO
34 ARG_PARTIALLY_QUOTED
= BIT1
,
35 ARG_FIRST_HALF_QUOTED
= BIT2
,
36 ARG_FIRST_CHAR_IS_ESC
= BIT3
37 } EFI_SHELL_ARG_INFO_TYPES
;
40 /// Attributes for an argument.
42 typedef struct _EFI_SHELL_ARG_INFO
{
47 /// This protocol provides access to additional information about a shell application.
51 /// Handle back to original image handle & image information.
53 EFI_HANDLE ImageHandle
;
54 EFI_LOADED_IMAGE_PROTOCOL
*Info
;
57 /// Parsed arg list converted more C-like format.
63 /// Storage for file redirection args after parsing.
69 /// A file style handle for console io.
71 EFI_FILE_PROTOCOL
*StdIn
;
72 EFI_FILE_PROTOCOL
*StdOut
;
73 EFI_FILE_PROTOCOL
*StdErr
;
76 /// List of attributes for each argument.
78 EFI_SHELL_ARG_INFO
*ArgInfo
;
81 /// Whether we are echoing.
84 } EFI_SHELL_INTERFACE
;
86 extern EFI_GUID gEfiShellInterfaceGuid
;