aboutsummaryrefslogtreecommitdiff
path: root/src/common/torgzip.h
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@torproject.org>2017-04-18 02:23:25 +0200
committerAlexander Færøy <ahf@torproject.org>2017-04-18 02:23:25 +0200
commit6b5172bcf2018f858d38f5dea13753b8238b15ae (patch)
tree603af3b1ed4d96ed5e37eb915637336ddedf4ae9 /src/common/torgzip.h
parentb8c9f229d747d4edc739198113dfb7e3818e23bc (diff)
downloadtor-6b5172bcf2018f858d38f5dea13753b8238b15ae.tar.gz
tor-6b5172bcf2018f858d38f5dea13753b8238b15ae.zip
Expose `tor_compress_memory_level()` as a public function in the compression module.
This patch makes the internal `get_memlevel()` a part of the public compression API as `tor_compress_memory_level()`. See https://bugs.torproject.org/21663
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 2b0504eb13..8f2363aa1e 100644
--- a/src/common/torgzip.h
+++ b/src/common/torgzip.h
@@ -46,6 +46,9 @@ tor_zlib_get_header_version_str(void);
compress_method_t detect_compression_method(const char *in, size_t in_len);
+int
+tor_compress_memory_level(compression_level_t level);
+
/** Return values from tor_compress_process; see that function's documentation
* for details. */
typedef enum {