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 <[email protected]> 8 */ 9 10 #ifndef LIBXML2_XZLIB_H 11 #define LIBXML2_XZLIB_H 12 13 #include <libxml/xmlversion.h> 14 15 #ifdef LIBXML_LZMA_ENABLED 16 17 typedef void *xzFile; /* opaque lzma file descriptor */ 18 19 XML_HIDDEN xzFile 20 __libxml2_xzopen(const char *path, const char *mode); 21 XML_HIDDEN xzFile 22 __libxml2_xzdopen(const char *path, int fd, const char *mode); 23 XML_HIDDEN int 24 __libxml2_xzread(xzFile file, void *buf, unsigned len); 25 XML_HIDDEN int 26 __libxml2_xzclose(xzFile file); 27 XML_HIDDEN int 28 __libxml2_xzcompressed(xzFile f); 29 30 #endif /* LIBXML_LZMA_ENABLED */ 31 32 #endif /* LIBXML2_XZLIB_H */ 33