summaryrefslogtreecommitdiff
path: root/chromium/third_party/libxml/src/include/private/xzlib.h
blob: b3326980ce544a41608b03530f4bf5926d259c3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
 * xzlib.h: header for the front end for the transparent support 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

#include <libxml/xmlversion.h>

#ifdef LIBXML_LZMA_ENABLED

typedef void *xzFile;           /* opaque lzma file descriptor */

XML_HIDDEN xzFile
__libxml2_xzopen(const char *path, const char *mode);
XML_HIDDEN xzFile
__libxml2_xzdopen(int fd, const char *mode);
XML_HIDDEN int
__libxml2_xzread(xzFile file, void *buf, unsigned len);
XML_HIDDEN int
__libxml2_xzclose(xzFile file);
XML_HIDDEN int
__libxml2_xzcompressed(xzFile f);

#endif /* LIBXML_LZMA_ENABLED */

#endif /* LIBXML2_XZLIB_H */