]>
Commit | Line | Data |
---|---|---|
8be0ba36 | 1 | /** @file\r |
2 | Function definitions for shell simple text in and out on top of file handles.\r | |
3 | \r | |
733f138d | 4 | Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r |
8be0ba36 | 5 | This program and the accompanying materials\r |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | \r | |
15 | #ifndef _SHELL_CONSOLE_WRAPPERS_HEADER_\r | |
16 | #define _SHELL_CONSOLE_WRAPPERS_HEADER_\r | |
17 | \r | |
18 | /**\r | |
19 | Function to create a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a \r | |
20 | SHELL_FILE_HANDLE to support redirecting input from a file.\r | |
21 | \r | |
22 | @param[in] FileHandleToUse The pointer to the SHELL_FILE_HANDLE to use.\r | |
23 | @param[in] HandleLocation The pointer of a location to copy handle with protocol to.\r | |
24 | \r | |
25 | @retval NULL There was insufficient memory available.\r | |
26 | @return A pointer to the allocated protocol structure;\r | |
27 | **/\r | |
28 | EFI_SIMPLE_TEXT_INPUT_PROTOCOL*\r | |
29 | EFIAPI\r | |
30 | CreateSimpleTextInOnFile(\r | |
31 | IN SHELL_FILE_HANDLE FileHandleToUse,\r | |
32 | IN EFI_HANDLE *HandleLocation\r | |
33 | );\r | |
34 | \r | |
35 | /**\r | |
36 | Function to close a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a \r | |
37 | SHELL_FILE_HANDLE to support redirecting input from a file.\r | |
38 | \r | |
39 | @param[in] SimpleTextIn The pointer to the SimpleTextIn to close.\r | |
40 | \r | |
41 | @retval EFI_SUCCESS The object was closed.\r | |
42 | **/\r | |
43 | EFI_STATUS\r | |
44 | EFIAPI\r | |
45 | CloseSimpleTextInOnFile(\r | |
46 | IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *SimpleTextIn\r | |
47 | );\r | |
48 | \r | |
49 | /**\r | |
50 | Function to create a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a \r | |
51 | SHELL_FILE_HANDLE to support redirecting output from a file.\r | |
52 | \r | |
53 | @param[in] FileHandleToUse The pointer to the SHELL_FILE_HANDLE to use.\r | |
54 | @param[in] HandleLocation The pointer of a location to copy handle with protocol to.\r | |
55 | \r | |
56 | @retval NULL There was insufficient memory available.\r | |
57 | @return A pointer to the allocated protocol structure;\r | |
58 | **/\r | |
59 | EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL*\r | |
60 | EFIAPI\r | |
61 | CreateSimpleTextOutOnFile(\r | |
62 | IN SHELL_FILE_HANDLE FileHandleToUse,\r | |
63 | IN EFI_HANDLE *HandleLocation\r | |
64 | );\r | |
65 | \r | |
66 | /**\r | |
67 | Function to close a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a \r | |
68 | SHELL_FILE_HANDLE to support redirecting output from a file.\r | |
69 | \r | |
733f138d | 70 | @param[in] SimpleTextOut The pointer to the SimpleTextOUT to close.\r |
8be0ba36 | 71 | \r |
72 | @retval EFI_SUCCESS The object was closed.\r | |
73 | **/\r | |
74 | EFI_STATUS\r | |
75 | EFIAPI\r | |
76 | CloseSimpleTextOutOnFile(\r | |
733f138d | 77 | IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *SimpleTextOut\r |
8be0ba36 | 78 | );\r |
79 | \r | |
80 | #endif //_SHELL_CONSOLE_WRAPPERS_HEADER_\r | |
81 | \r |