mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-16 00:00:07 +01:00

This nukes all the oldstyle prefixes except in the compatibility code. struct libwebsockets becomes struct lws too. The api docs are updated accordingly as are the READMEs that mention those apis. Signed-off-by: Andy Green <andy.green@linaro.org>
20 lines
506 B
C
20 lines
506 B
C
|
|
#include <zlib.h>
|
|
|
|
#define DEFLATE_STREAM_CHUNK 128
|
|
#define DEFLATE_STREAM_COMPRESSION_LEVEL 1
|
|
|
|
struct lws_ext_deflate_stream_conn {
|
|
z_stream zs_in;
|
|
z_stream zs_out;
|
|
int remaining_in;
|
|
unsigned char buf_in[LWS_MAX_SOCKET_IO_BUF];
|
|
unsigned char buf_out[LWS_MAX_SOCKET_IO_BUF];
|
|
};
|
|
|
|
extern int lws_extension_callback_deflate_stream(
|
|
struct lws_context *context,
|
|
struct lws_extension *ext,
|
|
struct lws *wsi,
|
|
enum lws_extension_callback_reasons reason,
|
|
void *user, void *in, size_t len);
|