aboutsummaryrefslogtreecommitdiff
path: root/src/common/torgzip.h
blob: 61bb6adbcf94fb6fb92df4c9b5ad6ee3d6dc6b89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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