]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Image/Image.h
Apply GetFileBufferByFilePath API of DxeServicesLib to replace local CoreOpenImageFil...
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Image / Image.h
index 54f71c3820364c90e50f66d4d79aa3a70481ef1b..4adade5a5342533540413905b392fbc6c7991275 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Data structure and functions to load and unload PeImage.\r
 \r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
+Copyright (c) 2006 - 2009, Intel Corporation. <BR>\r
 All rights reserved. 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
@@ -89,67 +89,6 @@ typedef struct {
   UINTN               SourceSize;\r
 } IMAGE_FILE_HANDLE;\r
 \r
-\r
-/**\r
-  Opens a file for (simple) reading.  The simple read abstraction\r
-  will access the file either from a memory copy, from a file\r
-  system interface, or from the load file interface.\r
-\r
-  @param  BootPolicy             Policy for Open Image File.\r
-  @param  SourceBuffer           Pointer to the memory location containing copy\r
-                                 of the image to be loaded.\r
-  @param  SourceSize             The size in bytes of SourceBuffer.\r
-  @param  FilePath               The specific file path from which the image is\r
-                                 loaded\r
-  @param  DeviceHandle           Pointer to the return device handle.\r
-  @param  ImageFileHandle        Pointer to the image file handle.\r
-  @param  AuthenticationStatus   Pointer to a caller-allocated UINT32 in which\r
-                                 the authentication status is returned.\r
-\r
-  @retval EFI_SUCCESS            Image file successfully opened.\r
-  @retval EFI_LOAD_ERROR         If the caller passed a copy of the file, and\r
-                                 SourceSize is 0.\r
-  @retval EFI_INVALID_PARAMETER  File path is not valid.\r
-  @retval EFI_NOT_FOUND          File not found.\r
-\r
-**/\r
-EFI_STATUS\r
-CoreOpenImageFile (\r
-  IN BOOLEAN                        BootPolicy,\r
-  IN VOID                           *SourceBuffer   OPTIONAL,\r
-  IN UINTN                          SourceSize,\r
-  IN OUT EFI_DEVICE_PATH_PROTOCOL   **FilePath,\r
-  OUT EFI_HANDLE                    *DeviceHandle,\r
-  IN IMAGE_FILE_HANDLE              *ImageFileHandle,\r
-  OUT UINT32                        *AuthenticationStatus\r
-  );\r
-\r
-\r
-\r
-/**\r
-  Read image file (specified by UserHandle) into user specified buffer with specified offset\r
-  and length.\r
-\r
-  @param  UserHandle             Image file handle\r
-  @param  Offset                 Offset to the source file\r
-  @param  ReadSize               For input, pointer of size to read; For output,\r
-                                 pointer of size actually read.\r
-  @param  Buffer                 Buffer to write into\r
-\r
-  @retval EFI_SUCCESS            Successfully read the specified part of file\r
-                                 into buffer.\r
-\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-CoreReadImageFile (\r
-  IN     VOID    *UserHandle,\r
-  IN     UINTN   Offset,\r
-  IN OUT UINTN   *ReadSize,\r
-  OUT    VOID    *Buffer\r
-  );\r
-\r
-\r
 /**\r
   Loads an EFI image into memory and returns a handle to the image with extended parameters.\r
 \r