aboutsummaryrefslogtreecommitdiff
path: root/src/lib/compress/compress.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-06-28 16:25:06 -0400
committerNick Mathewson <nickm@torproject.org>2018-06-28 16:28:08 -0400
commitd8b34e0886c9fd08fb51e0de4fadca7da82056ff (patch)
tree5b2a8cea0d0a683f7ab1e71a158c28021f9dfb99 /src/lib/compress/compress.h
parentbe40ad51b68fa87bafb88e55db7856d373274a4d (diff)
downloadtor-d8b34e0886c9fd08fb51e0de4fadca7da82056ff.tar.gz
tor-d8b34e0886c9fd08fb51e0de4fadca7da82056ff.zip
Move buffers into container
Split the network-only and compression-only parts of buffers into the appropriate modules.
Diffstat (limited to 'src/lib/compress/compress.h')
-rw-r--r--src/lib/compress/compress.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/compress/compress.h b/src/lib/compress/compress.h
index f88cf2cb2d..ae98e1aaef 100644
--- a/src/lib/compress/compress.h
+++ b/src/lib/compress/compress.h
@@ -92,4 +92,8 @@ size_t tor_compress_state_size(const tor_compress_state_t *state);
void tor_compress_init(void);
void tor_compress_log_init_warnings(void);
+struct buf_t;
+int buf_add_compress(struct buf_t *buf, struct tor_compress_state_t *state,
+ const char *data, size_t data_len, int done);
+
#endif /* !defined(TOR_COMPRESS_H) */