]>
git.proxmox.com Git - mirror_edk2.git/blob - ShellPkg/Library/UefiShellDebug1CommandsLib/HexEdit/FileImage.h
2 Defines FileImage - the view of the file that is visible at any point,
3 as well as the event handlers for editing the file
5 Copyright (c) 2005 - 2011, Intel Corporation. All rights reserved. <BR>
6 This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _LIB_FILE_IMAGE_H_
17 #define _LIB_FILE_IMAGE_H_
19 #include "HexEditor.h"
22 Initialization function for HFileImage
24 @retval EFI_SUCCESS The operation was successful.
32 Cleanup function for HFileImage.
34 @retval EFI_SUCCESS The operation was successful.
42 Backup function for HFileImage. Only a few fields need to be backup.
43 This is for making the file buffer refresh as few as possible.
45 @retval EFI_SUCCESS The operation was successful.
46 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
54 Read a file from disk into HBufferImage.
56 @param[in] FileName filename to read.
57 @param[in] Recover if is for recover, no information print.
59 @retval EFI_SUCCESS The operation was successful.
60 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
61 @retval EFI_LOAD_ERROR A load error occured.
65 IN CONST CHAR16
*FileName
,
70 Save lines in HBufferImage to disk.
72 @param[in] FileName The file name.
74 @retval EFI_SUCCESS The operation was successful.
75 @retval EFI_OUT_OF_RESOURCES A memory allocation failed.
76 @retval EFI_LOAD_ERROR A load error occured.