diff options
author | Alexander Færøy <ahf@torproject.org> | 2017-04-17 14:29:10 +0200 |
---|---|---|
committer | Alexander Færøy <ahf@torproject.org> | 2017-04-17 14:29:10 +0200 |
commit | 44cb86adbe2e9b9fef7bf5fd64b52a8e44441be5 (patch) | |
tree | 2dd93776ce5e16f2f8df7b6e7bda8cf96e891b57 /src/common/torgzip.h | |
parent | e8b025dfc30ef0008cb44feb56ab3c740d2bae9b (diff) | |
download | tor-44cb86adbe2e9b9fef7bf5fd64b52a8e44441be5.tar.gz tor-44cb86adbe2e9b9fef7bf5fd64b52a8e44441be5.zip |
Rename `tor_gzip_{compress,uncompress}` to `tor_{compress,uncompress}`.
To allow us to use the API name `tor_compress` and `tor_uncompress` as
the main entry-point for all compression/uncompression and not just gzip
and zlib.
See https://bugs.torproject.org/21663
Diffstat (limited to 'src/common/torgzip.h')
-rw-r--r-- | src/common/torgzip.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/common/torgzip.h b/src/common/torgzip.h index cbcbb9978f..ac9763eabe 100644 --- a/src/common/torgzip.h +++ b/src/common/torgzip.h @@ -28,15 +28,15 @@ typedef enum { } compression_level_t; int -tor_gzip_compress(char **out, size_t *out_len, - const char *in, size_t in_len, - compress_method_t method); +tor_compress(char **out, size_t *out_len, + const char *in, size_t in_len, + compress_method_t method); int -tor_gzip_uncompress(char **out, size_t *out_len, - const char *in, size_t in_len, - compress_method_t method, - int complete_only, - int protocol_warn_level); +tor_uncompress(char **out, size_t *out_len, + const char *in, size_t in_len, + compress_method_t method, + int complete_only, + int protocol_warn_level); const char * tor_zlib_get_version_str(void); |