]> git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Library/EdkNullCustomizedDecompressLib/CustomizedDecompress.h
Modify ModifyInf task's attributes from "inputfvinffilename" to "inputfvinffile"...
[mirror_edk2.git] / EdkModulePkg / Library / EdkNullCustomizedDecompressLib / CustomizedDecompress.h
CommitLineData
878ddf1f 1/*++\r
2\r
3Copyright (c) 2006, Intel Corporation \r
4All rights reserved. This program and the accompanying materials \r
5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12Module Name:\r
13 \r
14 CustomizedDecompress.h\r
15\r
16Abstract:\r
17\r
18 Header file for Customized decompression routine\r
19 \r
20--*/\r
21#ifndef _CUSTOMIZED_DECOMPRESS_LIB_H_\r
22#define _CUSTOMIZED_DECOMPRESS_LIB_H_\r
23\r
24\r
25\r
26\r
27EFI_STATUS\r
28EFIAPI\r
29CustomizedGetInfo (\r
30 IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL *This,\r
31 IN VOID *Source,\r
32 IN UINT32 SrcSize,\r
33 OUT UINT32 *DstSize,\r
34 OUT UINT32 *ScratchSize\r
35 )\r
36/*++\r
37\r
38Routine Description:\r
39\r
40 The implementation of Customized GetInfo().\r
41\r
42Arguments:\r
43 This - The EFI customized decompress protocol\r
44 Source - The source buffer containing the compressed data.\r
45 SrcSize - The size of source buffer\r
46 DstSize - The size of destination buffer.\r
47 ScratchSize - The size of scratch buffer.\r
48\r
49Returns:\r
50\r
51 EFI_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.\r
52 EFI_INVALID_PARAMETER - The source data is corrupted\r
53 EFI_UNSUPPORTED - Not supported\r
54\r
55--*/\r
56;\r
57\r
58EFI_STATUS\r
59EFIAPI\r
60CustomizedDecompress (\r
61 IN EFI_CUSTOMIZED_DECOMPRESS_PROTOCOL *This,\r
62 IN VOID *Source,\r
63 IN UINT32 SrcSize,\r
64 IN OUT VOID *Destination,\r
65 IN UINT32 DstSize,\r
66 IN OUT VOID *Scratch,\r
67 IN UINT32 ScratchSize\r
68 )\r
69/*++\r
70\r
71Routine Description:\r
72\r
73 The implementation of Customized Decompress().\r
74\r
75Arguments:\r
76\r
77 This - The protocol instance pointer\r
78 Source - The source buffer containing the compressed data.\r
79 SrcSize - The size of source buffer\r
80 Destination - The destination buffer to store the decompressed data\r
81 DstSize - The size of destination buffer.\r
82 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.\r
83 ScratchSize - The size of scratch buffer.\r
84\r
85Returns:\r
86\r
87 EFI_SUCCESS - Decompression is successfull\r
88 EFI_INVALID_PARAMETER - The source data is corrupted\r
89 EFI_UNSUPPORTED - Not supported\r
90\r
91--*/\r
92;\r
93\r
94\r
95#endif\r