+++ /dev/null
-/** @file\r
- LZMA Decompress GUIDed Section Extraction Library.\r
- It wraps Lzma decompress interfaces to GUIDed Section Extraction interfaces\r
- and registers them into GUIDed handler table.\r
-\r
- Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>\r
- SPDX-License-Identifier: BSD-2-Clause-Patent\r
-\r
-**/\r
-\r
-#include <PiDxe.h>\r
-#include <Library/HobLib.h>\r
-#include <Library/ExtractGuidedSectionLib.h>\r
-\r
-#include <Guid/ExtractSection.h>\r
-#include <Guid/LzmaDecompress.h>\r
-\r
-\r
-/**\r
- Register LzmaDecompress and LzmaDecompressGetInfo handlers with LzmaCustomerDecompressGuid.\r
-\r
- @retval RETURN_SUCCESS Register successfully.\r
- @retval RETURN_OUT_OF_RESOURCES No enough memory to store this handler.\r
-**/\r
-EFI_STATUS\r
-EFIAPI\r
-LzmaDecompressLibConstructor (\r
- )\r
-{\r
- EXTRACT_SECTION_HOB *Hob;\r
-\r
- Hob = GetFirstGuidHob (&gLzmaCustomDecompressGuid);\r
- if (Hob == NULL) {\r
- return EFI_NOT_FOUND;\r
- }\r
-\r
- // Locate Guided Hob\r
-\r
- return ExtractGuidedSectionRegisterHandlers (\r
- &gLzmaCustomDecompressGuid,\r
- Hob->Data.SectionGetInfo,\r
- Hob->Data.SectionExtraction\r
- );\r
-}\r