]>
Commit | Line | Data |
---|---|---|
354aadbe MS |
1 | /* |
2 | * "$Id: huffman-private.h 11985 2014-07-02 15:41:16Z msweet $" | |
3 | * | |
4 | * HTTP/2 Huffman compression/decompression definitions for CUPS. | |
5 | * | |
6 | * Copyright 2014 by Apple Inc. | |
7 | * | |
8 | * These coded instructions, statements, and computer programs are the | |
9 | * property of Apple Inc. and are protected by Federal copyright | |
10 | * law. Distribution and use rights are outlined in the file "LICENSE.txt" | |
11 | * which should have been included with this file. If this file is | |
12 | * file is missing or damaged, see the license at "http://www.cups.org/". | |
13 | * | |
14 | * This file is subject to the Apple OS-Developed Software exception. | |
15 | */ | |
16 | ||
17 | #ifndef _CUPS_HUFFMAN_PRIVATE_H_ | |
18 | # define _CUPS_HUFFMAN_PRIVATE_H_ | |
19 | ||
20 | /* | |
21 | * Include necessary headers... | |
22 | */ | |
23 | ||
24 | # include "versioning.h" | |
25 | # include <stdlib.h> | |
26 | ||
27 | ||
28 | /* | |
29 | * C++ magic... | |
30 | */ | |
31 | ||
32 | # ifdef __cplusplus | |
33 | extern "C" { | |
34 | # endif /* __cplusplus */ | |
35 | ||
36 | ||
37 | /* | |
38 | * Functions... | |
39 | */ | |
40 | ||
41 | extern size_t _http2HuffmanDecode(char *dst, size_t dstsize, const unsigned char *src, size_t srclen); | |
42 | extern size_t _http2HuffmanEncode(unsigned char *dst, size_t dstsize, const char *src); | |
43 | ||
44 | ||
45 | /* | |
46 | * C++ magic... | |
47 | */ | |
48 | ||
49 | # ifdef __cplusplus | |
50 | } | |
51 | # endif /* __cplusplus */ | |
52 | #endif /* !_CUPS_HUFFMAN_PRIVATE_H_ */ | |
53 | ||
54 | /* | |
55 | * End of "$Id: huffman-private.h 11985 2014-07-02 15:41:16Z msweet $". | |
56 | */ |