]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Library/PrePiLib/FwVol.c
EmbeddedPkg: Add back FfsFindSectionData
[mirror_edk2.git] / EmbeddedPkg / Library / PrePiLib / FwVol.c
index 85dbf5b0adb3b6b0111d68f25e8854d53d1edb4c..7739a5c8aae74912fb9cdca283ac20e9af04694a 100644 (file)
@@ -504,6 +504,29 @@ FfsFindSectionDataWithHook (
            );\r
 }\r
 \r
+/**\r
+  This service enables discovery sections of a given type within a valid FFS file.\r
+\r
+  @param  SectionType           The value of the section type to find.\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
+  @retval EFI_SUCCESS           The section was found.\r
+  @retval EFI_NOT_FOUND         The section was not found.\r
+\r
+**/\r
+EFI_STATUS\r
+EFIAPI\r
+FfsFindSectionData (\r
+  IN EFI_SECTION_TYPE     SectionType,\r
+  IN EFI_PEI_FILE_HANDLE  FileHandle,\r
+  OUT VOID                **SectionData\r
+  )\r
+{\r
+  return FfsFindSectionDataWithHook (SectionType, NULL, FileHandle, SectionData);\r
+}\r
+\r
 /**\r
   This service enables discovery of additional firmware files.\r
 \r