2005-09-29 Marcus Brinkmann <marcus@g10code.de>
[gnupg.git] / include / zlib-riscos.h
blobfad556bcb3bbdcff7f3a42d72767ecd321e1ea27
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 2 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, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 #ifndef G10_ZLIB_RISCOS_H
21 #define G10_ZLIB_RISCOS_H
23 #include <kernel.h>
24 #include <swis.h>
26 static const char * const zlib_path[] = {
27 "System:310.Modules.ZLib",
28 NULL
31 #define ZLib_Compress 0x53AC0
32 #define ZLib_Decompress 0x53AC1
33 #define ZLib_CRC32 0x53AC2
34 #define ZLib_Adler32 0x53AC3
35 #define ZLib_Version 0x53AC4
36 #define ZLib_ZCompress 0x53AC5
37 #define ZLib_ZCompress2 0x53AC6
38 #define ZLib_ZUncompress 0x53AC7
39 #define ZLib_DeflateInit 0x53AC8
40 #define ZLib_InflateInit 0x53AC9
41 #define ZLib_DeflateInit2 0x53ACA
42 #define ZLib_InflateInit2 0x53ACB
43 #define ZLib_Deflate 0x53ACC
44 #define ZLib_DeflateEnd 0x53ACD
45 #define ZLib_Inflate 0x53ACE
46 #define ZLib_InflateEnd 0x53ACF
47 #define ZLib_DeflateSetDictionary 0x53AD0
48 #define ZLib_DeflateCopy 0x53AD1
49 #define ZLib_DeflateReset 0x53AD2
50 #define ZLib_DeflateParams 0x53AD3
51 #define ZLib_InflateSetDictionary 0x53AD4
52 #define ZLib_InflateSync 0x53AD5
53 #define ZLib_InflateReset 0x53AD6
54 #define ZLib_GZOpen 0x53AD7
55 #define ZLib_GZRead 0x53AD8
56 #define ZLib_GRWrite 0x53AD9
57 #define ZLib_GZFlush 0x53ADA
58 #define ZLib_GZClose 0x53ADB
59 #define ZLib_GZError 0x53ADC
60 #define ZLib_GZSeek 0x53ADD
61 #define ZLib_GZTell 0x53ADE
62 #define ZLib_GZEOF 0x53ADF
63 #define ZLib_TaskAssociate 0x53AE0
65 #define crc32(r0,r1,r2) \
66 _swi(ZLib_CRC32, _INR(0,2) | _RETURN(0), r0,r1,r2)
67 #define adler32(r0,r1,r2) \
68 _swi(ZLib_Adler32, _INR(0,2) | _RETURN(0), r0,r1,r2)
69 #define zlibVersion() \
70 _swi(ZLib_Version, _RETURN(0))
71 #define compress(r0,r1,r2,r3) \
72 _swi(ZLib_ZCompress, _INR(0,3) | _RETURN(0)|_OUT(1), r0,r1,r2,r3, &r1)
73 #define compress2(r0,r1,r2,r3,r4) \
74 _swi(ZLib_ZCompress2, _INR(0,4) | _RETURN(0)|_OUT(1), r0,r1,r2,r3,r4, &r1)
75 #define uncompress(r0,r1,r2,r3) \
76 _swi(ZLib_ZUncompress, _INR(0,3) | _RETURN(0)|_OUT(1), r0,r1,r2,r3, &r1)
77 #define deflateInit_(r0,r1,r2,r3) \
78 _swi(ZLib_DeflateInit, _INR(0,3) | _RETURN(0), r0,r1,r2,r3)
79 #define inflateInit_(r0,r1,r2) \
80 _swi(ZLib_InflateInit, _INR(0,2) | _RETURN(0), r0,r1,r2)
81 #define deflateInit2_(r0,r1,r2,r3,r4,r5,r6,r7) \
82 _swi(ZLib_DeflateInit2, _INR(0,7) | _RETURN(0), r0,r1,r2,r3,r4,r5,r6,r7)
83 #define inflateInit2_(r0,r1,r2,r3) \
84 _swi(ZLib_InflateInit2, _INR(0,3) | _RETURN(0), r0,r1,r2,r3)
85 #define deflate(r0,r1) \
86 _swi(ZLib_Deflate, _INR(0,1) | _RETURN(0), r0,r1)
87 #define deflateEnd(r0) \
88 _swi(ZLib_DeflateEnd, _IN(0) | _RETURN(0), r0)
89 #define inflate(r0,r1) \
90 _swi(ZLib_Inflate, _INR(0,1) | _RETURN(0), r0,r1)
91 #define inflateEnd(r0) \
92 _swi(ZLib_InflateEnd, _IN(0) | _RETURN(0), r0)
93 #define deflateSetDictionary(r0,r1,r2) \
94 _swi(ZLib_DeflateSetDictionary, _INR(0,2) | _RETURN(0), r0,r1,r2)
95 #define deflateCopy(r0,r1) \
96 _swi(ZLib_DeflateCopy, _INR(0,1) | _RETURN(0), r0,r1)
97 #define deflateReset(r0) \
98 _swi(ZLib_DeflateReset, _IN(0) | _RETURN(0), r0)
99 #define deflateParams(r0,r1,r2) \
100 _swi(ZLib_DeflateParams, _INR(0,2) | _RETURN(0), r0,r1,r2)
101 #define inflateSetDictionary(r0,r1,r2) \
102 _swi(ZLib_InflateSetDictionary, _INR(0,2) | _RETURN(0), r0,r1,r2)
103 #define inflateSync(r0) \
104 _swi(ZLib_InflateSync, _IN(0) | _RETURN(0), r0)
105 #define inflateReset(r0) \
106 _swi(ZLib_InflateReset, _IN(0) | _RETURN(0), r0)
107 #define gzopen(r0,r1) \
108 _swi(ZLib_GZOpen, _INR(0,1) | _RETURN(0), r0)
109 #define gzdopen(r0,r1) BUG()
110 #define gzsetparams(r0,r1,r2) BUG()
111 #define gzread(r0,r1,r2) \
112 _swi(ZLib_GZRead, _INR(0,2) | _RETURN(0), r0,r1,r2)
113 #define gzwrite(r0,r1,r2) \
114 _swi(ZLib_GZWrite, _INR(0,2) | _RETURN(0), r0,r1,r2)
115 #define gzprintf(r0,r1,...) BUG()
116 #define gzputs(r0,r1) BUG()
117 #define gzgets(r0,r1,r2) BUG()
118 #define gzputc(r0,r1) BUG()
119 #define gzgetc(r0) BUG()
120 #define gzflush(r0,r1) \
121 _swi(ZLib_GZFlush, _INR(0,1) | _RETURN(0), r0,r1)
122 #define gzclose(r0) \
123 _swi(ZLib_GZClose, _IN(0) | _RETURN(0), r0)
124 #define gzerror(r0,r1) \
125 _swi(ZLib_GZError, _IN(0) | _RETURN(0)|_OUT(1), r0, &r1)
126 #define gzseek(r0,r1,r2) \
127 _swi(ZLib_GZSeek, _INR(0,2) | _RETURN(0), r0,r1,r2)
128 #define gzrewind(r0) BUG()
129 #define gztell(r0) \
130 _swi(ZLib_GZTell, _IN(0) | _RETURN(0), r0)
131 #define gzeof(r0) \
132 _swi(ZLib_GZEOF, _IN(0) | _RETURN(0), r0)
134 #endif /* G10_ZLIB_RISCOS_H */