Fix debian bug#543530
[gnupg.git] / include / zlib-riscos.h
blob0f547d38053562e2b858e4552c93f30777ba2f53
1 /* zlib-riscos.h
2 * Copyright (C) 2002 Free Software Foundation, Inc.
4 * This file is part of GNUPG.
6 * GNUPG is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * GNUPG is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
19 #ifndef G10_ZLIB_RISCOS_H
20 #define G10_ZLIB_RISCOS_H
22 #include <kernel.h>
23 #include <swis.h>
25 static const char * const zlib_path[] = {
26 "System:310.Modules.ZLib",
27 NULL
30 #define ZLib_Compress 0x53AC0
31 #define ZLib_Decompress 0x53AC1
32 #define ZLib_CRC32 0x53AC2
33 #define ZLib_Adler32 0x53AC3
34 #define ZLib_Version 0x53AC4
35 #define ZLib_ZCompress 0x53AC5
36 #define ZLib_ZCompress2 0x53AC6
37 #define ZLib_ZUncompress 0x53AC7
38 #define ZLib_DeflateInit 0x53AC8
39 #define ZLib_InflateInit 0x53AC9
40 #define ZLib_DeflateInit2 0x53ACA
41 #define ZLib_InflateInit2 0x53ACB
42 #define ZLib_Deflate 0x53ACC
43 #define ZLib_DeflateEnd 0x53ACD
44 #define ZLib_Inflate 0x53ACE
45 #define ZLib_InflateEnd 0x53ACF
46 #define ZLib_DeflateSetDictionary 0x53AD0
47 #define ZLib_DeflateCopy 0x53AD1
48 #define ZLib_DeflateReset 0x53AD2
49 #define ZLib_DeflateParams 0x53AD3
50 #define ZLib_InflateSetDictionary 0x53AD4
51 #define ZLib_InflateSync 0x53AD5
52 #define ZLib_InflateReset 0x53AD6
53 #define ZLib_GZOpen 0x53AD7
54 #define ZLib_GZRead 0x53AD8
55 #define ZLib_GRWrite 0x53AD9
56 #define ZLib_GZFlush 0x53ADA
57 #define ZLib_GZClose 0x53ADB
58 #define ZLib_GZError 0x53ADC
59 #define ZLib_GZSeek 0x53ADD
60 #define ZLib_GZTell 0x53ADE
61 #define ZLib_GZEOF 0x53ADF
62 #define ZLib_TaskAssociate 0x53AE0
64 #define crc32(r0,r1,r2) \
65 _swi(ZLib_CRC32, _INR(0,2) | _RETURN(0), r0,r1,r2)
66 #define adler32(r0,r1,r2) \
67 _swi(ZLib_Adler32, _INR(0,2) | _RETURN(0), r0,r1,r2)
68 #define zlibVersion() \
69 _swi(ZLib_Version, _RETURN(0))
70 #define compress(r0,r1,r2,r3) \
71 _swi(ZLib_ZCompress, _INR(0,3) | _RETURN(0)|_OUT(1), r0,r1,r2,r3, &r1)
72 #define compress2(r0,r1,r2,r3,r4) \
73 _swi(ZLib_ZCompress2, _INR(0,4) | _RETURN(0)|_OUT(1), r0,r1,r2,r3,r4, &r1)
74 #define uncompress(r0,r1,r2,r3) \
75 _swi(ZLib_ZUncompress, _INR(0,3) | _RETURN(0)|_OUT(1), r0,r1,r2,r3, &r1)
76 #define deflateInit_(r0,r1,r2,r3) \
77 _swi(ZLib_DeflateInit, _INR(0,3) | _RETURN(0), r0,r1,r2,r3)
78 #define inflateInit_(r0,r1,r2) \
79 _swi(ZLib_InflateInit, _INR(0,2) | _RETURN(0), r0,r1,r2)
80 #define deflateInit2_(r0,r1,r2,r3,r4,r5,r6,r7) \
81 _swi(ZLib_DeflateInit2, _INR(0,7) | _RETURN(0), r0,r1,r2,r3,r4,r5,r6,r7)
82 #define inflateInit2_(r0,r1,r2,r3) \
83 _swi(ZLib_InflateInit2, _INR(0,3) | _RETURN(0), r0,r1,r2,r3)
84 #define deflate(r0,r1) \
85 _swi(ZLib_Deflate, _INR(0,1) | _RETURN(0), r0,r1)
86 #define deflateEnd(r0) \
87 _swi(ZLib_DeflateEnd, _IN(0) | _RETURN(0), r0)
88 #define inflate(r0,r1) \
89 _swi(ZLib_Inflate, _INR(0,1) | _RETURN(0), r0,r1)
90 #define inflateEnd(r0) \
91 _swi(ZLib_InflateEnd, _IN(0) | _RETURN(0), r0)
92 #define deflateSetDictionary(r0,r1,r2) \
93 _swi(ZLib_DeflateSetDictionary, _INR(0,2) | _RETURN(0), r0,r1,r2)
94 #define deflateCopy(r0,r1) \
95 _swi(ZLib_DeflateCopy, _INR(0,1) | _RETURN(0), r0,r1)
96 #define deflateReset(r0) \
97 _swi(ZLib_DeflateReset, _IN(0) | _RETURN(0), r0)
98 #define deflateParams(r0,r1,r2) \
99 _swi(ZLib_DeflateParams, _INR(0,2) | _RETURN(0), r0,r1,r2)
100 #define inflateSetDictionary(r0,r1,r2) \
101 _swi(ZLib_InflateSetDictionary, _INR(0,2) | _RETURN(0), r0,r1,r2)
102 #define inflateSync(r0) \
103 _swi(ZLib_InflateSync, _IN(0) | _RETURN(0), r0)
104 #define inflateReset(r0) \
105 _swi(ZLib_InflateReset, _IN(0) | _RETURN(0), r0)
106 #define gzopen(r0,r1) \
107 _swi(ZLib_GZOpen, _INR(0,1) | _RETURN(0), r0)
108 #define gzdopen(r0,r1) BUG()
109 #define gzsetparams(r0,r1,r2) BUG()
110 #define gzread(r0,r1,r2) \
111 _swi(ZLib_GZRead, _INR(0,2) | _RETURN(0), r0,r1,r2)
112 #define gzwrite(r0,r1,r2) \
113 _swi(ZLib_GZWrite, _INR(0,2) | _RETURN(0), r0,r1,r2)
114 #define gzprintf(r0,r1,...) BUG()
115 #define gzputs(r0,r1) BUG()
116 #define gzgets(r0,r1,r2) BUG()
117 #define gzputc(r0,r1) BUG()
118 #define gzgetc(r0) BUG()
119 #define gzflush(r0,r1) \
120 _swi(ZLib_GZFlush, _INR(0,1) | _RETURN(0), r0,r1)
121 #define gzclose(r0) \
122 _swi(ZLib_GZClose, _IN(0) | _RETURN(0), r0)
123 #define gzerror(r0,r1) \
124 _swi(ZLib_GZError, _IN(0) | _RETURN(0)|_OUT(1), r0, &r1)
125 #define gzseek(r0,r1,r2) \
126 _swi(ZLib_GZSeek, _INR(0,2) | _RETURN(0), r0,r1,r2)
127 #define gzrewind(r0) BUG()
128 #define gztell(r0) \
129 _swi(ZLib_GZTell, _IN(0) | _RETURN(0), r0)
130 #define gzeof(r0) \
131 _swi(ZLib_GZEOF, _IN(0) | _RETURN(0), r0)
133 #endif /* G10_ZLIB_RISCOS_H */