2 LZMA Decompress GUIDed Section Extraction Library.
3 It wraps Lzma decompress interfaces to GUIDed Section Extraction interfaces
4 and registers them into GUIDed handler table.
6 Copyright (c) 2009, Intel Corporation. All rights reserved.<BR>
7 This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
18 #include <Library/HobLib.h>
19 #include <Library/ExtractGuidedSectionLib.h>
21 #include <Guid/ExtractSection.h>
22 #include <Guid/LzmaDecompress.h>
26 Register LzmaDecompress and LzmaDecompressGetInfo handlers with LzmaCustomerDecompressGuid.
28 @retval RETURN_SUCCESS Register successfully.
29 @retval RETURN_OUT_OF_RESOURCES No enough memory to store this handler.
33 LzmaDecompressLibConstructor (
36 EXTRACT_SECTION_HOB
*Hob
;
38 Hob
= GetFirstGuidHob (&gLzmaCustomDecompressGuid
);
45 return ExtractGuidedSectionRegisterHandlers (
46 &gLzmaCustomDecompressGuid
,
47 Hob
->Data
.SectionGetInfo
,
48 Hob
->Data
.SectionExtraction