Enable Idebus to use the Atapi.h defined in MdePkg/Include/IndustryStandard
[mirror_edk2.git] / MdePkg / Library / BaseCustomDecompressLibNull / BaseCustomDecompressLibNull.c
CommitLineData
7bc232b2
LG
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
7bc232b2
LG
12\r
13--*/\r
14\r
859b72fa
A
15#include <Base.h>\r
16#include <Library/CustomDecompressLib.h>\r
17\r
7bc232b2
LG
18\r
19RETURN_STATUS\r
20EFIAPI\r
21CustomDecompressGetInfo (\r
22 IN CONST VOID *Source,\r
23 IN UINT32 SourceSize,\r
24 OUT UINT32 *DestinationSize,\r
25 OUT UINT32 *ScratchSize\r
26 )\r
27/*++\r
28\r
29Routine Description:\r
30\r
31 The internal implementation of *_DECOMPRESS_PROTOCOL.GetInfo().\r
32\r
33Arguments:\r
34\r
35 Source - The source buffer containing the compressed data.\r
36 SourceSize - The size of source buffer\r
37 DestinationSize - The size of destination buffer.\r
38 ScratchSize - The size of scratch buffer.\r
39\r
40Returns:\r
41\r
42 RETURN_SUCCESS - The size of destination buffer and the size of scratch buffer are successull retrieved.\r
43 RETURN_INVALID_PARAMETER - The source data is corrupted\r
44\r
45--*/\r
46{\r
47 return RETURN_UNSUPPORTED;\r
48}\r
49\r
50RETURN_STATUS\r
51EFIAPI\r
52CustomDecompress (\r
53 IN CONST VOID *Source,\r
54 IN OUT VOID *Destination,\r
55 IN OUT VOID *Scratch\r
56 )\r
57/*++\r
58\r
59Routine Description:\r
60\r
61 The internal implementation of *_DECOMPRESS_PROTOCOL.Decompress().\r
62\r
63Arguments:\r
64\r
65 Source - The source buffer containing the compressed data.\r
66 Destination - The destination buffer to store the decompressed data\r
67 Scratch - The buffer used internally by the decompress routine. This buffer is needed to store intermediate data.\r
68\r
69Returns:\r
70\r
71 RETURN_SUCCESS - Decompression is successfull\r
72 RETURN_INVALID_PARAMETER - The source data is corrupted\r
73\r
74--*/\r
75{\r
76 return RETURN_UNSUPPORTED;\r
77}\r