mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 23:52:30 +01:00
26 lines
536 B
C
26 lines
536 B
C
/* 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
|