aboutsummaryrefslogtreecommitdiff
path: root/src/common/torgzip.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-08-19 10:59:15 -0400
committerNick Mathewson <nickm@torproject.org>2014-08-24 13:04:27 -0400
commit8e55cafd672353979e7628d5dad9e12429b401dd (patch)
tree5c21280017363ee9b31356013d7ab5961bfa4f04 /src/common/torgzip.h
parentec59167cae1f5b3057ed722857d78ec78239e991 (diff)
downloadtor-8e55cafd672353979e7628d5dad9e12429b401dd.tar.gz
tor-8e55cafd672353979e7628d5dad9e12429b401dd.zip
Count zlib buffer memory towards OOM totals.
Part of 11792. (Uses the zlib-endorsed formula for memory needs for inflate/deflate from "zconf.h".)
Diffstat (limited to 'src/common/torgzip.h')
-rw-r--r--src/common/torgzip.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/torgzip.h b/src/common/torgzip.h
index 5db03fe6e0..d407bf48c6 100644
--- a/src/common/torgzip.h
+++ b/src/common/torgzip.h
@@ -55,5 +55,8 @@ tor_zlib_output_t tor_zlib_process(tor_zlib_state_t *state,
int finish);
void tor_zlib_free(tor_zlib_state_t *state);
+size_t tor_zlib_state_size(const tor_zlib_state_t *state);
+size_t tor_zlib_get_total_allocation(void);
+
#endif