aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-08-26 15:33:19 -0400
committerNick Mathewson <nickm@torproject.org>2010-09-27 14:22:11 -0400
commit0c9b64d449a725dc2f9f043d174b581e3a5d9cb2 (patch)
tree19ecfaf74f334c5881e476d5b92ade3b82970d55 /src/or/buffers.h
parent9796b9bfa6a757780d6185547e4baf739c53cdac (diff)
downloadtor-0c9b64d449a725dc2f9f043d174b581e3a5d9cb2.tar.gz
tor-0c9b64d449a725dc2f9f043d174b581e3a5d9cb2.zip
Get zlib compression working with bufferevents.
Diffstat (limited to 'src/or/buffers.h')
-rw-r--r--src/or/buffers.h3
1 files changed, 3 insertions, 0 deletions
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);