aboutsummaryrefslogtreecommitdiff
path: root/src/common/torgzip.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/torgzip.h')
-rw-r--r--src/common/torgzip.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/common/torgzip.h b/src/common/torgzip.h
new file mode 100644
index 0000000000..61bb6adbcf
--- /dev/null
+++ b/src/common/torgzip.h
@@ -0,0 +1,26 @@
+/* Copyright 2003 Roger Dingledine */
+/* See LICENSE for licensing information */
+/* $Id$ */
+
+/**
+ * \file torgzip.h
+ * \brief Headers for torgzip.h
+ **/
+
+#ifndef __TORGZIP_H
+#define __TORGZIP_H
+
+typedef enum { GZIP_METHOD, ZLIB_METHOD } compress_method_t;
+
+int
+tor_gzip_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 is_gzip_supported(void);
+
+#endif