torgzip.h 596 B

1234567891011121314151617181920212223242526
  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. typedef enum { GZIP_METHOD=1, ZLIB_METHOD=2 } compress_method_t;
  11. int
  12. tor_gzip_compress(char **out, size_t *out_len,
  13. const char *in, size_t in_len,
  14. compress_method_t method);
  15. int
  16. tor_gzip_uncompress(char **out, size_t *out_len,
  17. const char *in, size_t in_len,
  18. compress_method_t method);
  19. int is_gzip_supported(void);
  20. #endif