]> git.proxmox.com Git - mirror_edk2.git/blame - DuetPkg/EfiLdr/LzmaDecompress.h
Ported LZMA to DUET platform.
[mirror_edk2.git] / DuetPkg / EfiLdr / LzmaDecompress.h
CommitLineData
8b85412a 1/** @file\r
2 LZMA Decompress Library header file\r
3\r
4 Copyright (c) 2006 - 2009, Intel Corporation<BR>\r
5 All rights reserved. This program and the accompanying materials\r
6 are licensed and made available under the terms and conditions of the BSD License\r
7 which accompanies this distribution. The full text of the license may be found at\r
8 http://opensource.org/licenses/bsd-license.php\r
9\r
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14\r
15#ifndef __LZMADECOMPRESS_H__\r
16#define __LZMADECOMPRESS_H__\r
17\r
18/**\r
19 The internal implementation of *_DECOMPRESS_PROTOCOL.GetInfo().\r
20 \r
21 @param Source The source buffer containing the compressed data.\r
22 @param SourceSize The size of source buffer\r
23 @param DestinationSize The size of destination buffer.\r
24 @param ScratchSize The size of scratch buffer.\r
25\r
26 @retval RETURN_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.\r
27 @retval RETURN_INVALID_PARAMETER - The source data is corrupted\r
28**/\r
29RETURN_STATUS\r
30EFIAPI\r
31LzmaUefiDecompressGetInfo (\r
32 IN CONST VOID *Source,\r
33 IN UINT32 SourceSize,\r
34 OUT UINT32 *DestinationSize,\r
35 OUT UINT32 *ScratchSize\r
36 );\r
37\r
38/**\r
39 The internal implementation of *_DECOMPRESS_PROTOCOL.Decompress().\r
40 \r
41 @param Source - The source buffer containing the compressed data.\r
42 @param Destination - The destination buffer to store the decompressed data\r
43 @param Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.\r
44\r
45 @retval RETURN_SUCCESS - Decompression is successfull\r
46 @retval RETURN_INVALID_PARAMETER - The source data is corrupted \r
47**/\r
48RETURN_STATUS\r
49EFIAPI\r
50LzmaUefiDecompress (\r
51 IN CONST VOID *Source,\r
52 IN OUT VOID *Destination,\r
53 IN OUT VOID *Scratch\r
54 );\r
55\r
56#endif // __LZMADECOMPRESS_H__\r
57\r