\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
**/\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
//\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