]>
Commit | Line | Data |
---|---|---|
1 | /*++\r | |
2 | \r | |
3 | Copyright (c) 2004, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r | |
11 | \r | |
12 | Module Name:\r | |
13 | \r | |
14 | EfiCompress.h\r | |
15 | \r | |
16 | Abstract:\r | |
17 | \r | |
18 | Header file for compression routine\r | |
19 | \r | |
20 | --*/\r | |
21 | \r | |
22 | #ifndef _EFICOMPRESS_H\r | |
23 | #define _EFICOMPRESS_H\r | |
24 | \r | |
25 | #include <string.h>\r | |
26 | #include <stdlib.h>\r | |
27 | \r | |
28 | #include <Common/UefiBaseTypes.h>\r | |
29 | \r | |
30 | EFI_STATUS\r | |
31 | Compress (\r | |
32 | IN UINT8 *SrcBuffer,\r | |
33 | IN UINT32 SrcSize,\r | |
34 | IN UINT8 *DstBuffer,\r | |
35 | IN OUT UINT32 *DstSize\r | |
36 | )\r | |
37 | ;\r | |
38 | \r | |
39 | /*++\r | |
40 | \r | |
41 | Routine Description:\r | |
42 | \r | |
43 | The compression routine.\r | |
44 | \r | |
45 | Arguments:\r | |
46 | \r | |
47 | SrcBuffer - The buffer storing the source data\r | |
48 | SrcSize - The size of source data\r | |
49 | DstBuffer - The buffer to store the compressed data\r | |
50 | DstSize - On input, the size of DstBuffer; On output,\r | |
51 | the size of the actual compressed data.\r | |
52 | \r | |
53 | Returns:\r | |
54 | \r | |
55 | EFI_BUFFER_TOO_SMALL - The DstBuffer is too small. In this case,\r | |
56 | DstSize contains the size needed.\r | |
57 | EFI_SUCCESS - Compression is successful.\r | |
58 | \r | |
59 | --*/\r | |
60 | typedef\r | |
61 | EFI_STATUS\r | |
62 | (*COMPRESS_FUNCTION) (\r | |
63 | IN UINT8 *SrcBuffer,\r | |
64 | IN UINT32 SrcSize,\r | |
65 | IN UINT8 *DstBuffer,\r | |
66 | IN OUT UINT32 *DstSize\r | |
67 | );\r | |
68 | \r | |
69 | #endif\r |