grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / devs / diskimage / include / aros / defines / z.h
blobbb4a624d5a90e25461f36de0474ff64f4f59e2eb
1 /* Automatically generated header (sfdc 1.4)! Do not edit! */
3 #ifndef _INLINE_Z_H
4 #define _INLINE_Z_H
6 #ifndef _SFDC_VARARG_DEFINED
7 #define _SFDC_VARARG_DEFINED
8 #ifdef __HAVE_IPTR_ATTR__
9 typedef APTR _sfdc_vararg __attribute__((iptr));
10 #else
11 typedef ULONG _sfdc_vararg;
12 #endif /* __HAVE_IPTR_ATTR__ */
13 #endif /* _SFDC_VARARG_DEFINED */
15 #ifndef AROS_LIBCALL_H
16 #include <aros/libcall.h>
17 #endif /* !AROS_LIBCALL_H */
19 #ifndef Z_BASE_NAME
20 #define Z_BASE_NAME ZBase
21 #endif /* !Z_BASE_NAME */
23 #define ZlibVersion() \
24 AROS_LC0(const char *, ZlibVersion, \
25 struct Library *, Z_BASE_NAME, 5, Z)
27 #define DeflateInit(___strm, ___level) \
28 AROS_LC2(LONG, DeflateInit, \
29 AROS_LCA(z_streamp, (___strm), A0), \
30 AROS_LCA(LONG, (___level), D0), \
31 struct Library *, Z_BASE_NAME, 6, Z)
33 #define Deflate(___strm, ___flush) \
34 AROS_LC2(LONG, Deflate, \
35 AROS_LCA(z_streamp, (___strm), A0), \
36 AROS_LCA(LONG, (___flush), D0), \
37 struct Library *, Z_BASE_NAME, 7, Z)
39 #define DeflateEnd(___strm) \
40 AROS_LC1(LONG, DeflateEnd, \
41 AROS_LCA(z_streamp, (___strm), A0), \
42 struct Library *, Z_BASE_NAME, 8, Z)
44 #define InflateInit(___strm) \
45 AROS_LC1(LONG, InflateInit, \
46 AROS_LCA(z_streamp, (___strm), A0), \
47 struct Library *, Z_BASE_NAME, 9, Z)
49 #define Inflate(___strm, ___flush) \
50 AROS_LC2(LONG, Inflate, \
51 AROS_LCA(z_streamp, (___strm), A0), \
52 AROS_LCA(LONG, (___flush), D0), \
53 struct Library *, Z_BASE_NAME, 10, Z)
55 #define InflateEnd(___strm) \
56 AROS_LC1(LONG, InflateEnd, \
57 AROS_LCA(z_streamp, (___strm), A0), \
58 struct Library *, Z_BASE_NAME, 11, Z)
60 #define DeflateInit2(___strm, ___level, ___method, ___windowBits, ___memLevel, ___strategy) \
61 AROS_LC6(LONG, DeflateInit2, \
62 AROS_LCA(z_streamp, (___strm), A0), \
63 AROS_LCA(LONG, (___level), D0), \
64 AROS_LCA(LONG, (___method), D1), \
65 AROS_LCA(LONG, (___windowBits), D2), \
66 AROS_LCA(LONG, (___memLevel), D3), \
67 AROS_LCA(LONG, (___strategy), D4), \
68 struct Library *, Z_BASE_NAME, 12, Z)
70 #define DeflateSetDictionary(___strm, ___dictionary, ___dictLength) \
71 AROS_LC3(LONG, DeflateSetDictionary, \
72 AROS_LCA(z_streamp, (___strm), A0), \
73 AROS_LCA(CONST_APTR, (___dictionary), A1), \
74 AROS_LCA(ULONG, (___dictLength), D0), \
75 struct Library *, Z_BASE_NAME, 13, Z)
77 #define DeflateCopy(___dest, ___source) \
78 AROS_LC2(LONG, DeflateCopy, \
79 AROS_LCA(z_streamp, (___dest), A0), \
80 AROS_LCA(z_streamp, (___source), A1), \
81 struct Library *, Z_BASE_NAME, 14, Z)
83 #define DeflateReset(___strm) \
84 AROS_LC1(LONG, DeflateReset, \
85 AROS_LCA(z_streamp, (___strm), A0), \
86 struct Library *, Z_BASE_NAME, 15, Z)
88 #define DeflateParams(___strm, ___level, ___strategy) \
89 AROS_LC3(LONG, DeflateParams, \
90 AROS_LCA(z_streamp, (___strm), A0), \
91 AROS_LCA(LONG, (___level), D0), \
92 AROS_LCA(LONG, (___strategy), D1), \
93 struct Library *, Z_BASE_NAME, 16, Z)
95 #define InflateInit2(___strm, ___windowBits) \
96 AROS_LC2(LONG, InflateInit2, \
97 AROS_LCA(z_streamp, (___strm), A0), \
98 AROS_LCA(LONG, (___windowBits), D0), \
99 struct Library *, Z_BASE_NAME, 17, Z)
101 #define InflateSetDictionary(___strm, ___dictionary, ___dictLength) \
102 AROS_LC3(LONG, InflateSetDictionary, \
103 AROS_LCA(z_streamp, (___strm), A0), \
104 AROS_LCA(CONST_APTR, (___dictionary), A1), \
105 AROS_LCA(ULONG, (___dictLength), D0), \
106 struct Library *, Z_BASE_NAME, 18, Z)
108 #define InflateReset(___strm) \
109 AROS_LC1(LONG, InflateReset, \
110 AROS_LCA(z_streamp, (___strm), A0), \
111 struct Library *, Z_BASE_NAME, 19, Z)
113 #define Compress(___dest, ___destLen, ___source, ___sourceLen) \
114 AROS_LC4(LONG, Compress, \
115 AROS_LCA(APTR, (___dest), A0), \
116 AROS_LCA(ULONG *, (___destLen), A1), \
117 AROS_LCA(CONST_APTR, (___source), A2), \
118 AROS_LCA(ULONG, (___sourceLen), D0), \
119 struct Library *, Z_BASE_NAME, 20, Z)
121 #define Uncompress(___dest, ___destLen, ___source, ___sourceLen) \
122 AROS_LC4(LONG, Uncompress, \
123 AROS_LCA(APTR, (___dest), A0), \
124 AROS_LCA(ULONG *, (___destLen), A1), \
125 AROS_LCA(CONST_APTR, (___source), A2), \
126 AROS_LCA(ULONG, (___sourceLen), D0), \
127 struct Library *, Z_BASE_NAME, 21, Z)
129 #define Adler32(___adler, ___buf, ___len) \
130 AROS_LC3(ULONG, Adler32, \
131 AROS_LCA(ULONG, (___adler), D0), \
132 AROS_LCA(CONST_APTR, (___buf), A0), \
133 AROS_LCA(ULONG, (___len), D1), \
134 struct Library *, Z_BASE_NAME, 22, Z)
136 #define CRC32(___crc, ___buf, ___len) \
137 AROS_LC3(ULONG, CRC32, \
138 AROS_LCA(ULONG, (___crc), D0), \
139 AROS_LCA(CONST_APTR, (___buf), A0), \
140 AROS_LCA(ULONG, (___len), D1), \
141 struct Library *, Z_BASE_NAME, 23, Z)
143 #define InflateSync(___strm) \
144 AROS_LC1(LONG, InflateSync, \
145 AROS_LCA(z_streamp, (___strm), A0), \
146 struct Library *, Z_BASE_NAME, 24, Z)
148 #endif /* !_INLINE_Z_H */