2010-11-16 23:31:47 +01:00
|
|
|
/** @file
|
|
|
|
Function definitions for shell simple text in and out on top of file handles.
|
|
|
|
|
2015-02-04 23:25:01 +01:00
|
|
|
(C) Copyright 2013 Hewlett-Packard Development Company, L.P.<BR>
|
2018-06-27 15:13:38 +02:00
|
|
|
Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR>
|
2019-04-04 01:07:06 +02:00
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
2010-11-16 23:31:47 +01:00
|
|
|
|
|
|
|
**/
|
|
|
|
|
|
|
|
#ifndef _SHELL_CONSOLE_WRAPPERS_HEADER_
|
|
|
|
#define _SHELL_CONSOLE_WRAPPERS_HEADER_
|
|
|
|
|
|
|
|
/**
|
2018-06-27 15:13:38 +02:00
|
|
|
Function to create a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a
|
2010-11-16 23:31:47 +01:00
|
|
|
SHELL_FILE_HANDLE to support redirecting input from a file.
|
|
|
|
|
|
|
|
@param[in] FileHandleToUse The pointer to the SHELL_FILE_HANDLE to use.
|
|
|
|
@param[in] HandleLocation The pointer of a location to copy handle with protocol to.
|
|
|
|
|
|
|
|
@retval NULL There was insufficient memory available.
|
|
|
|
@return A pointer to the allocated protocol structure;
|
|
|
|
**/
|
|
|
|
EFI_SIMPLE_TEXT_INPUT_PROTOCOL*
|
|
|
|
CreateSimpleTextInOnFile(
|
|
|
|
IN SHELL_FILE_HANDLE FileHandleToUse,
|
|
|
|
IN EFI_HANDLE *HandleLocation
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2018-06-27 15:13:38 +02:00
|
|
|
Function to close a EFI_SIMPLE_TEXT_INPUT_PROTOCOL on top of a
|
2010-11-16 23:31:47 +01:00
|
|
|
SHELL_FILE_HANDLE to support redirecting input from a file.
|
|
|
|
|
|
|
|
@param[in] SimpleTextIn The pointer to the SimpleTextIn to close.
|
|
|
|
|
|
|
|
@retval EFI_SUCCESS The object was closed.
|
|
|
|
**/
|
|
|
|
EFI_STATUS
|
|
|
|
CloseSimpleTextInOnFile(
|
|
|
|
IN EFI_SIMPLE_TEXT_INPUT_PROTOCOL *SimpleTextIn
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2018-06-27 15:13:38 +02:00
|
|
|
Function to create a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a
|
2010-11-16 23:31:47 +01:00
|
|
|
SHELL_FILE_HANDLE to support redirecting output from a file.
|
|
|
|
|
2013-10-24 19:47:57 +02:00
|
|
|
@param[in] FileHandleToUse The pointer to the SHELL_FILE_HANDLE to use.
|
|
|
|
@param[in] HandleLocation The pointer of a location to copy handle with protocol to.
|
|
|
|
@param[in] OriginalProtocol The pointer to the original output protocol for pass thru of functions.
|
2010-11-16 23:31:47 +01:00
|
|
|
|
|
|
|
@retval NULL There was insufficient memory available.
|
|
|
|
@return A pointer to the allocated protocol structure;
|
|
|
|
**/
|
|
|
|
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL*
|
|
|
|
CreateSimpleTextOutOnFile(
|
2013-10-24 19:47:57 +02:00
|
|
|
IN SHELL_FILE_HANDLE FileHandleToUse,
|
|
|
|
IN EFI_HANDLE *HandleLocation,
|
|
|
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *OriginalProtocol
|
2010-11-16 23:31:47 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
2018-06-27 15:13:38 +02:00
|
|
|
Function to close a EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL on top of a
|
2010-11-16 23:31:47 +01:00
|
|
|
SHELL_FILE_HANDLE to support redirecting output from a file.
|
|
|
|
|
2011-03-25 23:23:05 +01:00
|
|
|
@param[in] SimpleTextOut The pointer to the SimpleTextOUT to close.
|
2010-11-16 23:31:47 +01:00
|
|
|
|
|
|
|
@retval EFI_SUCCESS The object was closed.
|
|
|
|
**/
|
|
|
|
EFI_STATUS
|
|
|
|
CloseSimpleTextOutOnFile(
|
2011-03-25 23:23:05 +01:00
|
|
|
IN EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL *SimpleTextOut
|
2010-11-16 23:31:47 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
#endif //_SHELL_CONSOLE_WRAPPERS_HEADER_
|
|
|
|
|