]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/PrePiLib/FwVol.c
EmbeddedPkg: Rename FfsFindSectionData as FfsFindSectionDataWithHook
[mirror_edk2.git] / EmbeddedPkg / Library / PrePiLib / FwVol.c
index 778d8b13c33b100392280b4da3d9236017e3a07d..85dbf5b0adb3b6b0111d68f25e8854d53d1edb4c 100644 (file)
@@ -459,9 +459,11 @@ CheckNextSection:
 \r
 /**\r
   This service enables discovery sections of a given type within a valid FFS file.\r
+  Caller also can provide a SectionCheckHook to do additional checking.\r
 \r
-  @param  SearchType            The value of the section type to find.\r
-  @param  FfsFileHeader         A pointer to the file header that contains the set of sections to\r
+  @param  SectionType           The value of the section type to find.\r
+  @param  SectionCheckHook      A hook which can check if the section is the target one.\r
+  @param  FileHandle            A pointer to the file header that contains the set of sections to\r
                                 be searched.\r
   @param  SectionData           A pointer to the discovered section, if successful.\r
 \r
@@ -471,7 +473,7 @@ CheckNextSection:
 **/\r
 EFI_STATUS\r
 EFIAPI\r
-FfsFindSectionData (\r
+FfsFindSectionDataWithHook (\r
   IN EFI_SECTION_TYPE        SectionType,\r
   IN FFS_CHECK_SECTION_HOOK  SectionCheckHook,\r
   IN EFI_PEI_FILE_HANDLE     FileHandle,\r
@@ -817,7 +819,7 @@ FfsProcessFvFile (
   //\r
   // Find FvImage in FvFile\r
   //\r
-  Status = FfsFindSectionData (EFI_SECTION_FIRMWARE_VOLUME_IMAGE, NULL, FvFileHandle, (VOID **)&FvImageHandle);\r
+  Status = FfsFindSectionDataWithHook (EFI_SECTION_FIRMWARE_VOLUME_IMAGE, NULL, FvFileHandle, (VOID **)&FvImageHandle);\r
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r