GNU libmicrohttpd  0.9.29
compression.h
Go to the documentation of this file.
1 /*
2  This file is part of libmicrospdy
3  Copyright Copyright (C) 2012 Andrey Uzunov
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
25 #ifndef COMPRESSION_H
26 #define COMPRESSION_H
27 
28 #include "platform.h"
29 
30 /* size of buffers used by zlib on (de)compressing */
31 #define SPDYF_ZLIB_CHUNK 16384
32 
33 
41 int
42 SPDYF_zlib_deflate_init(z_stream *strm);
43 
44 
51 void
52 SPDYF_zlib_deflate_end(z_stream *strm);
53 
54 
68 int
69 SPDYF_zlib_deflate(z_stream *strm,
70  const void *src,
71  size_t src_size,
72  size_t *data_used,
73  void **dest,
74  size_t *dest_size);
75 
76 
84 int
85 SPDYF_zlib_inflate_init(z_stream *strm);
86 
87 
94 void
95 SPDYF_zlib_inflate_end(z_stream *strm);
96 
97 
110 int
111 SPDYF_zlib_inflate(z_stream *strm,
112  const void *src,
113  size_t src_size,
114  void **dest,
115  size_t *dest_size);
116 
117 #endif
platform-specific includes for libmicrohttpd
void SPDYF_zlib_inflate_end(z_stream *strm)
Definition: compression.c:343
int SPDYF_zlib_deflate_init(z_stream *strm)
Definition: compression.c:215
int SPDYF_zlib_inflate_init(z_stream *strm)
Definition: compression.c:320
void SPDYF_zlib_deflate_end(z_stream *strm)
Definition: compression.c:244
int SPDYF_zlib_inflate(z_stream *strm, const void *src, size_t src_size, void **dest, size_t *dest_size)
Definition: compression.c:350
int SPDYF_zlib_deflate(z_stream *strm, const void *src, size_t src_size, size_t *data_used, void **dest, size_t *dest_size)
Definition: compression.c:250