aboutsummaryrefslogtreecommitdiff
path: root/src/common/compress.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-04-25 09:54:02 -0400
committerNick Mathewson <nickm@torproject.org>2017-04-25 10:50:50 -0400
commit4b01b45ec1a2d561eab8bf7d8934857268e48701 (patch)
treeb8e193247fe1e7decf263bee8ad68e6f0a6133c2 /src/common/compress.h
parent880fb3e3a9aba21c0b36aa4aa5659432e90eb827 (diff)
downloadtor-4b01b45ec1a2d561eab8bf7d8934857268e48701.tar.gz
tor-4b01b45ec1a2d561eab8bf7d8934857268e48701.zip
Add a "best compression" flag.
Diffstat (limited to 'src/common/compress.h')
-rw-r--r--src/common/compress.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compress.h b/src/common/compress.h
index 2d812e4430..8be67df3a6 100644
--- a/src/common/compress.h
+++ b/src/common/compress.h
@@ -26,11 +26,11 @@ typedef enum {
/**
* Enumeration to define tradeoffs between memory usage and compression level.
- * HIGH_COMPRESSION saves the most bandwidth; LOW_COMPRESSION saves the most
+ * BEST_COMPRESSION saves the most bandwidth; LOW_COMPRESSION saves the most
* memory.
**/
typedef enum {
- HIGH_COMPRESSION, MEDIUM_COMPRESSION, LOW_COMPRESSION
+ BEST_COMPRESSION, HIGH_COMPRESSION, MEDIUM_COMPRESSION, LOW_COMPRESSION
} compression_level_t;
int tor_compress(char **out, size_t *out_len,