From 0c9b64d449a725dc2f9f043d174b581e3a5d9cb2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 26 Aug 2009 15:33:19 -0400 Subject: Get zlib compression working with bufferevents. --- src/or/buffers.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/or/buffers.h') diff --git a/src/or/buffers.h b/src/or/buffers.h index 64e1f55c58..35c1dd2ea5 100644 --- a/src/or/buffers.h +++ b/src/or/buffers.h @@ -60,6 +60,9 @@ int fetch_from_evbuffer_http(struct evbuffer *buf, char **body_out, size_t *body_used, size_t max_bodylen, int force_complete); int peek_evbuffer_has_control0_command(struct evbuffer *buf); +int write_to_evbuffer_zlib(struct evbuffer *buf, tor_zlib_state_t *state, + const char *data, size_t data_len, + int done); #endif void assert_buf_ok(buf_t *buf); -- cgit v1.2.3-54-g00ecf