updated spec enabled ssl
[profile/ivi/libwebsockets.git] / lib / extension-deflate-stream.h
1
2 #include <zlib.h>
3
4 #define DEFLATE_STREAM_CHUNK 128
5 #define DEFLATE_STREAM_COMPRESSION_LEVEL 1
6
7 struct lws_ext_deflate_stream_conn {
8         z_stream zs_in;
9         z_stream zs_out;
10         int remaining_in;
11         unsigned char buf_in[LWS_MAX_SOCKET_IO_BUF];
12         unsigned char buf_out[LWS_MAX_SOCKET_IO_BUF];
13 };
14
15 extern int lws_extension_callback_deflate_stream(
16                 struct libwebsocket_context *context,
17                 struct libwebsocket_extension *ext,
18                 struct libwebsocket *wsi,
19                 enum libwebsocket_extension_callback_reasons reason,
20                                               void *user, void *in, size_t len);