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