Edit

kc3-lang/libxml2/xzlib.h

Branch :

  • Show log

    Commit

  • Author : Daniel Veillard
    Date : 2013-05-10 14:01:46
    Hash : 63588f47
    Message : Fix a regression in xmlGetDocCompressMode() 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

  • xzlib.h
  • /**
     * 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 */