summaryrefslogtreecommitdiff
path: root/src/common/compress_zstd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/compress_zstd.h')
-rw-r--r--src/common/compress_zstd.h36
1 files changed, 14 insertions, 22 deletions
diff --git a/src/common/compress_zstd.h b/src/common/compress_zstd.h
index b2297bd1df..663cbdd2ff 100644
--- a/src/common/compress_zstd.h
+++ b/src/common/compress_zstd.h
@@ -11,26 +11,21 @@
#ifndef TOR_COMPRESS_ZSTD_H
#define TOR_COMPRESS_ZSTD_H
-int
-tor_zstd_method_supported(void);
+int tor_zstd_method_supported(void);
-const char *
-tor_zstd_get_version_str(void);
+const char *tor_zstd_get_version_str(void);
-const char *
-tor_zstd_get_header_version_str(void);
+const char *tor_zstd_get_header_version_str(void);
-int
-tor_zstd_compress(char **out, size_t *out_len,
- const char *in, size_t in_len,
- compress_method_t method);
+int tor_zstd_compress(char **out, size_t *out_len,
+ const char *in, size_t in_len,
+ compress_method_t method);
-int
-tor_zstd_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);
+int tor_zstd_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);
/** Internal state for an incremental Zstandard compression/decompression. */
typedef struct tor_zstd_compress_state_t tor_zstd_compress_state_t;
@@ -46,14 +41,11 @@ tor_zstd_compress_process(tor_zstd_compress_state_t *state,
const char **in, size_t *in_len,
int finish);
-void
-tor_zstd_compress_free(tor_zstd_compress_state_t *state);
+void tor_zstd_compress_free(tor_zstd_compress_state_t *state);
-size_t
-tor_zstd_compress_state_size(const tor_zstd_compress_state_t *state);
+size_t tor_zstd_compress_state_size(const tor_zstd_compress_state_t *state);
-size_t
-tor_zstd_get_total_allocation(void);
+size_t tor_zstd_get_total_allocation(void);
#endif // TOR_COMPRESS_ZSTD_H.