summaryrefslogtreecommitdiffstats
path: root/tkimg/zlib/zlibtcl.decls
blob: d0aa57d89129df696de7246ceae1382e50a629b5 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# zlibtcl.decls -- -*- tcl -*-
#
# This file contains the declarations for all supported public functions
# that are exported by the ZLIBTCL library via the stubs table. This file
# is used to generate the zlibtclDecls.h/zlibtclStubsLib.c/zlibtclStubsInit.c
# files.
#

# Declare each of the functions in the public BLT interface.  Note that
# the an index should never be reused for a different function in order
# to preserve backwards compatibility.

library zlibtcl

# Define the ZLIBTCL interface:

interface zlibtcl
scspec ZEXTERN

#########################################################################
###  Misc. interfaces

declare 0 {
    const char *zlibVersion(void)
}

declare 1 {
    const char *zError(int err)
}

declare 2 {
    uLong crc32(uLong crc, const Bytef *buf, uInt len)
}

declare 3 {
    uLong adler32(uLong adler, const Bytef *buf, uInt len)
}

#########################################################################
###  Deflate = Compression

declare 10 {
    int deflateInit_(z_streamp stream, int level, const char *version, int stream_size)
}
declare 11 {
    int deflateInit2_(z_streamp stream, int level,
	int method, int windowBits, int memLevel, int strategy,
	const char *version, int stream_size)
}
declare 12 {
    int deflate(z_streamp stream, int flush)
}
declare 13 {
    int deflateEnd(z_streamp stream)
}
declare 14 {
    int deflateSetDictionary(z_streamp stream, const Bytef *dict, uInt dictLength)
}
declare 15 {
    int deflateCopy(z_streamp dst, z_streamp src)
}
declare 16 {
    int deflateReset(z_streamp stream)
}
declare 17 {
    int deflateParams(z_streamp stream, int level, int strategy)
}

#########################################################################

declare 18 {
    int compress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
}
declare 19 {
    int compress2(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen, int level)
}

#########################################################################
###  Inflate = Decompression

declare 20 {
    int inflateInit_(z_streamp stream, const char *version, int stream_size)
}
declare 21 {
    int inflateInit2_(z_streamp stream, int windowBits, const char *version,
			int stream_size)
}
declare 22 {
    int inflate(z_streamp stream, int flush)
}
declare 23 {
    int inflateEnd(z_streamp stream)
}
declare 24 {
    int inflateSetDictionary(z_streamp stream, const Bytef *dict, uInt dictLength)
}
declare 25 {
    int inflateSync(z_streamp stream)
}
declare 26 {
    int inflateReset(z_streamp stream)
}

#########################################################################

declare 27 {
    int uncompress(Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen)
}
declare 28 {
    int inflateReset2(z_streamp strm, int windowBits)
}

#########################################################################
## gz'ip layer

declare 30 {
    gzFile gzopen(const char *path, const char *mode)
}
declare 31 {
    gzFile gzdopen(int fd, const char *mode)
}
declare 32 {
    int gzsetparams(gzFile file, int level, int strategy)
}
declare 33 {
    int gzread(gzFile file, voidp buf, unsigned len)
}
declare 34 {
    int gzwrite(gzFile file, voidpc buf, unsigned len)
}
declare 35 {
    int gzprintf(gzFile file, const char *format, ...)
}
declare 36 {
    int gzputs(gzFile file, const char *s)
}
declare 37 {
    char *gzgets(gzFile file, char *buf, int len)
}
declare 38 {
    int gzputc(gzFile file, int c)
}
declare 39 {
    int gzgetc(gzFile file)
}
declare 40 {
    int gzflush(gzFile file, int flush)
}
declare 41 {
    z_off_t gzseek(gzFile file, z_off_t offset, int whence)
}
declare 42 {
    int gzrewind(gzFile file)
}
declare 43 {
    z_off_t gztell(gzFile file)
}
declare 44 {
    int gzeof(gzFile file)
}
declare 45 {
    int gzclose(gzFile file)
}
declare 46 {
    const char *gzerror(gzFile file, int *errnum)
}

#########################################################################