2 EFI_FILE_PROTOCOL wrappers for other items (Like Environment Variables, StdIn, StdOut, StdErr, etc...)
4 Copyright (c) 2009 - 2010, 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
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.
15 #ifndef _SHELL_FILE_HANDLE_WRAPPERS_HEADER_
16 #define _SHELL_FILE_HANDLE_WRAPPERS_HEADER_
29 /// FILE sytle interfaces for StdIn.
31 extern EFI_FILE_PROTOCOL FileInterfaceStdIn
;
34 /// FILE sytle interfaces for StdOut.
36 extern EFI_FILE_PROTOCOL FileInterfaceStdOut
;
39 /// FILE sytle interfaces for StdErr.
41 extern EFI_FILE_PROTOCOL FileInterfaceStdErr
;
44 /// FILE style interface for NUL file.
46 extern EFI_FILE_PROTOCOL FileInterfaceNulFile
;
49 Creates a EFI_FILE_PROTOCOL (almost) object for using to access
50 environment variables through file operations.
52 @param EnvName The name of the Environment Variable to be operated on.
54 @retval NULL Memory could not be allocated.
55 @return other a pointer to an EFI_FILE_PROTOCOL structure
59 CreateFileInterfaceEnv(
64 Creates a EFI_FILE_PROTOCOL (almost) object for using to access
65 a file entirely in memory through file operations.
67 @param[in] Unicode TRUE if the data is UNICODE, FALSE otherwise.
69 @retval NULL Memory could not be allocated.
70 @return other a pointer to an EFI_FILE_PROTOCOL structure
74 CreateFileInterfaceMem(
75 IN CONST BOOLEAN Unicode
79 Creates a EFI_FILE_PROTOCOL (almost) object for using to access
80 a file entirely with unicode awareness through file operations.
82 @param[in] Template The pointer to the handle to start with.
83 @param[in] Unicode TRUE if the data is UNICODE, FALSE otherwise.
85 @retval NULL Memory could not be allocated.
86 @return other a pointer to an EFI_FILE_PROTOCOL structure
89 CreateFileInterfaceFile(
90 IN CONST EFI_FILE_PROTOCOL
*Template
,
91 IN CONST BOOLEAN Unicode
94 #endif //_SHELL_FILE_HANDLE_WRAPPERS_HEADER_