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 SPDX-License-Identifier: BSD-2-Clause-Patent
9 #ifndef _SHELL_FILE_HANDLE_WRAPPERS_HEADER_
10 #define _SHELL_FILE_HANDLE_WRAPPERS_HEADER_
23 /// FILE styte interfaces for StdIn.
25 extern EFI_FILE_PROTOCOL FileInterfaceStdIn
;
28 /// FILE styte interfaces for StdOut.
30 extern EFI_FILE_PROTOCOL FileInterfaceStdOut
;
33 /// FILE styte interfaces for StdErr.
35 extern EFI_FILE_PROTOCOL FileInterfaceStdErr
;
38 /// FILE style interface for NUL file.
40 extern EFI_FILE_PROTOCOL FileInterfaceNulFile
;
43 Creates a EFI_FILE_PROTOCOL (almost) object for using to access
44 environment variables through file operations.
46 @param EnvName The name of the Environment Variable to be operated on.
48 @retval NULL Memory could not be allocated.
49 @return other a pointer to an EFI_FILE_PROTOCOL structure
52 CreateFileInterfaceEnv(
57 Creates a EFI_FILE_PROTOCOL (almost) object for using to access
58 a file entirely in memory through file operations.
60 @param[in] Unicode TRUE if the data is UNICODE, FALSE otherwise.
62 @retval NULL Memory could not be allocated.
63 @return other a pointer to an EFI_FILE_PROTOCOL structure
66 CreateFileInterfaceMem(
67 IN CONST BOOLEAN Unicode
71 Creates a EFI_FILE_PROTOCOL (almost) object for using to access
72 a file entirely with unicode awareness through file operations.
74 @param[in] Template The pointer to the handle to start with.
75 @param[in] Unicode TRUE if the data is UNICODE, FALSE otherwise.
77 @retval NULL Memory could not be allocated.
78 @return other a pointer to an EFI_FILE_PROTOCOL structure
81 CreateFileInterfaceFile(
82 IN CONST EFI_FILE_PROTOCOL
*Template
,
83 IN CONST BOOLEAN Unicode
86 #endif //_SHELL_FILE_HANDLE_WRAPPERS_HEADER_