torgzip.h 624 B

123456789101112131415161718192021222324252627
  1. /* Copyright 2003 Roger Dingledine */
  2. /* See LICENSE for licensing information */
  3. /* $Id$ */
  4. /**
  5. * \file torgzip.h
  6. * \brief Headers for torgzip.h
  7. **/
  8. #ifndef __TORGZIP_H
  9. #define __TORGZIP_H
  10. #define TORGZIP_H_ID "$Id$"
  11. typedef enum { GZIP_METHOD=1, ZLIB_METHOD=2 } compress_method_t;
  12. int
  13. tor_gzip_compress(char **out, size_t *out_len,
  14. const char *in, size_t in_len,
  15. compress_method_t method);
  16. int
  17. tor_gzip_uncompress(char **out, size_t *out_len,
  18. const char *in, size_t in_len,
  19. compress_method_t method);
  20. int is_gzip_supported(void);
  21. #endif