/** @file\r
Declares filebuffer interface functions.\r
\r
- Copyright (c) 2005 - 2016, Intel Corporation. All rights reserved. <BR>\r
+ Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved. <BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
@param EFI_OUT_OF_RESOURCES A memory allocation failed.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferInit (\r
VOID\r
);\r
@retval EFI_SUCCESS The cleanup was successful.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferCleanup (\r
VOID\r
);\r
@retval EFI_LOAD_ERROR There was an error finding what to write.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferRefresh (\r
VOID\r
);\r
\r
-/** \r
+/**\r
Dispatch input to different handler\r
@param[in] Key The input key. One of:\r
ASCII KEY\r
@retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferHandleInput (\r
IN CONST EFI_INPUT_KEY * Key\r
);\r
@retval EFI_SUCCESS The backup operation was successful.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferBackup (\r
VOID\r
);\r
@retval EFI_SUCCESS The operation was successful.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferRestorePosition (\r
VOID\r
);\r
Set FileName field in FileBuffer.\r
\r
@param Str The file name to set.\r
- \r
+\r
@retval EFI_SUCCESS The filename was successfully set.\r
@retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
@retval EFI_INVALID_PARAMETER Str is not a valid filename.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferSetFileName (\r
IN CONST CHAR16 *Str\r
);\r
\r
/**\r
Read a file from disk into the FileBuffer.\r
- \r
+\r
@param[in] FileName The filename to read.\r
@param[in] Recover TRUE if is for recover mode, no information printouts.\r
- \r
+\r
@retval EFI_SUCCESS The load was successful.\r
@retval EFI_LOAD_ERROR The load failed.\r
@retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
@retval EFI_INVALID_PARAMETER FileName is a directory.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferRead (\r
IN CONST CHAR16 *FileName,\r
IN CONST BOOLEAN Recover\r
@param[in] FileName The file name for writing.\r
\r
@retval EFI_SUCCESS Data was written.\r
- @retval EFI_LOAD_ERROR \r
+ @retval EFI_LOAD_ERROR\r
@retval EFI_OUT_OF_RESOURCES There were not enough resources to write the file.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferSave (\r
CONST CHAR16 *FileName\r
);\r
@param[in] NewFilePosCol The column of file position ( start from 1 ).\r
**/\r
VOID\r
-EFIAPI\r
FileBufferMovePosition (\r
IN CONST UINTN NewFilePosRow,\r
IN CONST UINTN NewFilePosCol\r
/**\r
Cut current line out and return a pointer to it.\r
\r
- @param[out] CutLine Upon a successful return pointer to the pointer to \r
+ @param[out] CutLine Upon a successful return pointer to the pointer to\r
the allocated cut line.\r
\r
@retval EFI_SUCCESS The cut was successful.\r
@retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferCutLine (\r
OUT EFI_EDITOR_LINE **CutLine\r
);\r
@retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferPasteLine (\r
VOID\r
);\r
@retval EFI_NOT_FOUND The string Str was not found.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferSearch (\r
IN CONST CHAR16 *Str,\r
IN CONST UINTN Offset\r
@retval EFI_OUT_OF_RESOURCES A memory allocation failed.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferReplace (\r
IN CONST CHAR16 *Replace,\r
IN CONST UINTN SearchLen\r
@param[in] Offset The column to start at.\r
**/\r
EFI_STATUS\r
-EFIAPI\r
FileBufferReplaceAll (\r
IN CHAR16 *SearchStr,\r
IN CHAR16 *ReplaceStr,\r
@param[in] TextY The new y-coordinate.\r
**/\r
VOID\r
-EFIAPI\r
FileBufferAdjustMousePosition (\r
IN CONST INT32 TextX,\r
IN CONST INT32 TextY\r
Set the modified state to TRUE.\r
**/\r
VOID\r
-EFIAPI\r
FileBufferSetModified (\r
VOID\r
);\r
\r
-/**\r
- Get the size of the open buffer.\r
-\r
- @retval The size in bytes.\r
-**/\r
-UINTN\r
-FileBufferGetTotalSize (\r
- VOID\r
- );\r
-\r
#endif\r