xzlib.h 771 B

1234567891011121314151617181920212223242526272829303132
  1. /**
  2. * xzlib.h: header for the front end for the transparent support of lzma
  3. * compression at the I/O layer
  4. *
  5. * See Copyright for the status of this software.
  6. *
  7. * Anders F Bjorklund <afb@users.sourceforge.net>
  8. */
  9. #ifndef LIBXML2_XZLIB_H
  10. #define LIBXML2_XZLIB_H
  11. #include <libxml/xmlversion.h>
  12. #ifdef LIBXML_LZMA_ENABLED
  13. typedef void *xzFile; /* opaque lzma file descriptor */
  14. XML_HIDDEN xzFile
  15. __libxml2_xzopen(const char *path, const char *mode);
  16. XML_HIDDEN xzFile
  17. __libxml2_xzdopen(int fd, const char *mode);
  18. XML_HIDDEN int
  19. __libxml2_xzread(xzFile file, void *buf, unsigned len);
  20. XML_HIDDEN int
  21. __libxml2_xzclose(xzFile file);
  22. XML_HIDDEN int
  23. __libxml2_xzcompressed(xzFile f);
  24. #endif /* LIBXML_LZMA_ENABLED */
  25. #endif /* LIBXML2_XZLIB_H */