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