https://bugzilla.tianocore.org/show_bug.cgi?id=1373 Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails: https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html RFCs with detailed process for the license change: V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com>
		
			
				
	
	
		
			88 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			88 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /** @file
 | |
|   EFI_FILE_PROTOCOL wrappers for other items (Like Environment Variables, StdIn, StdOut, StdErr, etc...)
 | |
| 
 | |
|   Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
 | |
|   SPDX-License-Identifier: BSD-2-Clause-Patent
 | |
| 
 | |
| **/
 | |
| 
 | |
| #ifndef _SHELL_FILE_HANDLE_WRAPPERS_HEADER_
 | |
| #define _SHELL_FILE_HANDLE_WRAPPERS_HEADER_
 | |
| 
 | |
| typedef struct {
 | |
|   LIST_ENTRY        Link;
 | |
|   CHAR16*           Buffer;
 | |
| } SHELL_LINE_LIST;
 | |
| 
 | |
| typedef struct {
 | |
|   UINTN             LogCount;
 | |
|   SHELL_LINE_LIST   *Log;
 | |
| } SHELL_LINE_LOG;
 | |
| 
 | |
| ///
 | |
| /// FILE sytle interfaces for StdIn.
 | |
| ///
 | |
| extern EFI_FILE_PROTOCOL FileInterfaceStdIn;
 | |
| 
 | |
| ///
 | |
| /// FILE sytle interfaces for StdOut.
 | |
| ///
 | |
| extern EFI_FILE_PROTOCOL FileInterfaceStdOut;
 | |
| 
 | |
| ///
 | |
| /// FILE sytle interfaces for StdErr.
 | |
| ///
 | |
| extern EFI_FILE_PROTOCOL FileInterfaceStdErr;
 | |
| 
 | |
| ///
 | |
| /// FILE style interface for NUL file.
 | |
| ///
 | |
| extern EFI_FILE_PROTOCOL FileInterfaceNulFile;
 | |
| 
 | |
| /**
 | |
|   Creates a EFI_FILE_PROTOCOL (almost) object for using to access
 | |
|   environment variables through file operations.
 | |
| 
 | |
|   @param EnvName    The name of the Environment Variable to be operated on.
 | |
| 
 | |
|   @retval NULL      Memory could not be allocated.
 | |
|   @return other     a pointer to an EFI_FILE_PROTOCOL structure
 | |
| **/
 | |
| EFI_FILE_PROTOCOL*
 | |
| CreateFileInterfaceEnv(
 | |
|   CONST CHAR16 *EnvName
 | |
|   );
 | |
| 
 | |
| /**
 | |
|   Creates a EFI_FILE_PROTOCOL (almost) object for using to access
 | |
|   a file entirely in memory through file operations.
 | |
| 
 | |
|   @param[in] Unicode  TRUE if the data is UNICODE, FALSE otherwise.
 | |
| 
 | |
|   @retval NULL      Memory could not be allocated.
 | |
|   @return other     a pointer to an EFI_FILE_PROTOCOL structure
 | |
| **/
 | |
| EFI_FILE_PROTOCOL*
 | |
| CreateFileInterfaceMem(
 | |
|   IN CONST BOOLEAN Unicode
 | |
|   );
 | |
| 
 | |
| /**
 | |
|   Creates a EFI_FILE_PROTOCOL (almost) object for using to access
 | |
|   a file entirely with unicode awareness through file operations.
 | |
| 
 | |
|   @param[in] Template The pointer to the handle to start with.
 | |
|   @param[in] Unicode  TRUE if the data is UNICODE, FALSE otherwise.
 | |
| 
 | |
|   @retval NULL      Memory could not be allocated.
 | |
|   @return other     a pointer to an EFI_FILE_PROTOCOL structure
 | |
| **/
 | |
| EFI_FILE_PROTOCOL*
 | |
| CreateFileInterfaceFile(
 | |
|   IN CONST EFI_FILE_PROTOCOL  *Template,
 | |
|   IN CONST BOOLEAN            Unicode
 | |
|   );
 | |
| 
 | |
| #endif //_SHELL_FILE_HANDLE_WRAPPERS_HEADER_
 | |
| 
 |