mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-14 19:24:06 +03:00
63588f476f
The switch to xzlib had for consequence that the compression level of the input was not gathered anymore in ctxt->input->buf, then the parser compression flags was left to -1 and propagated to the resulting document. Fix the I/O layer to get compression detection in xzlib, then carry it in the input buffer and the resulting document This should fix https://lsbbugs.linuxfoundation.org/show_bug.cgi?id=3456
20 lines
619 B
C
20 lines
619 B
C
/**
|
|
* xzlib.h: header for the front end for the transparent suport of lzma
|
|
* compression at the I/O layer
|
|
*
|
|
* See Copyright for the status of this software.
|
|
*
|
|
* Anders F Bjorklund <afb@users.sourceforge.net>
|
|
*/
|
|
|
|
#ifndef LIBXML2_XZLIB_H
|
|
#define LIBXML2_XZLIB_H
|
|
typedef void *xzFile; /* opaque lzma file descriptor */
|
|
|
|
xzFile __libxml2_xzopen(const char *path, const char *mode);
|
|
xzFile __libxml2_xzdopen(int fd, const char *mode);
|
|
int __libxml2_xzread(xzFile file, void *buf, unsigned len);
|
|
int __libxml2_xzclose(xzFile file);
|
|
int __libxml2_xzcompressed(xzFile f);
|
|
#endif /* LIBXML2_XZLIB_H */
|