1 /* Automatically generated header (sfdc 1.4)! Do not edit! */
3 #ifndef _INLINE_CODESETS_H
4 #define _INLINE_CODESETS_H
6 #ifndef _SFDC_VARARG_DEFINED
7 #define _SFDC_VARARG_DEFINED
8 #ifdef __HAVE_IPTR_ATTR__
9 typedef APTR _sfdc_vararg
__attribute__((iptr
));
12 typedef IPTR _sfdc_vararg
;
14 typedef ULONG _sfdc_vararg
;
16 #endif /* __HAVE_IPTR_ATTR__ */
17 #endif /* _SFDC_VARARG_DEFINED */
19 #ifndef AROS_LIBCALL_H
20 #include <aros/libcall.h>
21 #endif /* !AROS_LIBCALL_H */
23 #ifndef CODESETS_BASE_NAME
24 #define CODESETS_BASE_NAME CodesetsBase
25 #endif /* !CODESETS_BASE_NAME */
27 #define CodesetsConvertUTF32toUTF16(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
28 AROS_LC5(ULONG, CodesetsConvertUTF32toUTF16, \
29 AROS_LCA(const UTF32 **, (___sourceStart), A0), \
30 AROS_LCA(const UTF32 *, (___sourceEnd), A1), \
31 AROS_LCA(UTF16 **, (___targetStart), A2), \
32 AROS_LCA(UTF16 *, (___targetEnd), A3), \
33 AROS_LCA(ULONG, (___flags), D0), \
34 struct Library *, CODESETS_BASE_NAME, 6, Codesets)
36 #define CodesetsConvertUTF16toUTF32(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
37 AROS_LC5(ULONG, CodesetsConvertUTF16toUTF32, \
38 AROS_LCA(const UTF16 **, (___sourceStart), A0), \
39 AROS_LCA(const UTF16 *, (___sourceEnd), A1), \
40 AROS_LCA(UTF32 **, (___targetStart), A2), \
41 AROS_LCA(UTF32 *, (___targetEnd), A3), \
42 AROS_LCA(ULONG, (___flags), D0), \
43 struct Library *, CODESETS_BASE_NAME, 7, Codesets)
45 #define CodesetsConvertUTF16toUTF8(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
46 AROS_LC5(ULONG, CodesetsConvertUTF16toUTF8, \
47 AROS_LCA(const UTF16 **, (___sourceStart), A0), \
48 AROS_LCA(const UTF16 *, (___sourceEnd), A1), \
49 AROS_LCA(UTF8 **, (___targetStart), A2), \
50 AROS_LCA(UTF8 *, (___targetEnd), A3), \
51 AROS_LCA(ULONG, (___flags), D0), \
52 struct Library *, CODESETS_BASE_NAME, 8, Codesets)
54 #define CodesetsIsLegalUTF8(___source, ___length) \
55 AROS_LC2(BOOL, CodesetsIsLegalUTF8, \
56 AROS_LCA(const UTF8 *, (___source), A0), \
57 AROS_LCA(ULONG, (___length), D0), \
58 struct Library *, CODESETS_BASE_NAME, 9, Codesets)
60 #define CodesetsIsLegalUTF8Sequence(___source, ___sourceEnd) \
61 AROS_LC2(BOOL, CodesetsIsLegalUTF8Sequence, \
62 AROS_LCA(const UTF8 *, (___source), A0), \
63 AROS_LCA(const UTF8 *, (___sourceEnd), A1), \
64 struct Library *, CODESETS_BASE_NAME, 10, Codesets)
66 #define CodesetsConvertUTF8toUTF16(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
67 AROS_LC5(ULONG, CodesetsConvertUTF8toUTF16, \
68 AROS_LCA(const UTF8 **, (___sourceStart), A0), \
69 AROS_LCA(const UTF8 *, (___sourceEnd), A1), \
70 AROS_LCA(UTF16 **, (___targetStart), A2), \
71 AROS_LCA(UTF16 *, (___targetEnd), A3), \
72 AROS_LCA(ULONG, (___flags), D0), \
73 struct Library *, CODESETS_BASE_NAME, 11, Codesets)
75 #define CodesetsConvertUTF32toUTF8(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
76 AROS_LC5(ULONG, CodesetsConvertUTF32toUTF8, \
77 AROS_LCA(const UTF32 **, (___sourceStart), A0), \
78 AROS_LCA(const UTF32 *, (___sourceEnd), A1), \
79 AROS_LCA(UTF8 **, (___targetStart), A2), \
80 AROS_LCA(UTF8 *, (___targetEnd), A3), \
81 AROS_LCA(ULONG, (___flags), D0), \
82 struct Library *, CODESETS_BASE_NAME, 12, Codesets)
84 #define CodesetsConvertUTF8toUTF32(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
85 AROS_LC5(ULONG, CodesetsConvertUTF8toUTF32, \
86 AROS_LCA(const UTF8 **, (___sourceStart), A0), \
87 AROS_LCA(const UTF8 *, (___sourceEnd), A1), \
88 AROS_LCA(UTF32 **, (___targetStart), A2), \
89 AROS_LCA(UTF32 *, (___targetEnd), A3), \
90 AROS_LCA(ULONG, (___flags), D0), \
91 struct Library *, CODESETS_BASE_NAME, 13, Codesets)
93 #define CodesetsSetDefaultA(___name, ___attrs) \
94 AROS_LC2(struct codeset *, CodesetsSetDefaultA, \
95 AROS_LCA(STRPTR, (___name), A0), \
96 AROS_LCA(struct TagItem *, (___attrs), A1), \
97 struct Library *, CODESETS_BASE_NAME, 14, Codesets)
99 #ifndef NO_INLINE_STDARG
100 #define CodesetsSetDefault(___name, ___attrs, ...) \
101 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsSetDefaultA((___name), (struct TagItem *) _tags); })
102 #endif /* !NO_INLINE_STDARG */
104 #define CodesetsFreeA(___obj, ___attrs) \
105 AROS_LC2NR(void, CodesetsFreeA, \
106 AROS_LCA(APTR, (___obj), A0), \
107 AROS_LCA(struct TagItem *, (___attrs), A1), \
108 struct Library *, CODESETS_BASE_NAME, 15, Codesets)
110 #ifndef NO_INLINE_STDARG
111 #define CodesetsFree(___obj, ___attrs, ...) \
112 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsFreeA((___obj), (struct TagItem *) _tags); })
113 #endif /* !NO_INLINE_STDARG */
115 #define CodesetsSupportedA(___attrs) \
116 AROS_LC1(STRPTR *, CodesetsSupportedA, \
117 AROS_LCA(struct TagItem *, (___attrs), A0), \
118 struct Library *, CODESETS_BASE_NAME, 16, Codesets)
120 #ifndef NO_INLINE_STDARG
121 #define CodesetsSupported(___attrs, ...) \
122 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsSupportedA((struct TagItem *) _tags); })
123 #endif /* !NO_INLINE_STDARG */
125 #define CodesetsFindA(___name, ___attrs) \
126 AROS_LC2(struct codeset *, CodesetsFindA, \
127 AROS_LCA(STRPTR, (___name), A0), \
128 AROS_LCA(struct TagItem *, (___attrs), A1), \
129 struct Library *, CODESETS_BASE_NAME, 17, Codesets)
131 #ifndef NO_INLINE_STDARG
132 #define CodesetsFind(___name, ___attrs, ...) \
133 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsFindA((___name), (struct TagItem *) _tags); })
134 #endif /* !NO_INLINE_STDARG */
136 #define CodesetsFindBestA(___attrs) \
137 AROS_LC1(struct codeset *, CodesetsFindBestA, \
138 AROS_LCA(struct TagItem *, (___attrs), A0), \
139 struct Library *, CODESETS_BASE_NAME, 18, Codesets)
141 #ifndef NO_INLINE_STDARG
142 #define CodesetsFindBest(___attrs, ...) \
143 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsFindBestA((struct TagItem *) _tags); })
144 #endif /* !NO_INLINE_STDARG */
146 #define CodesetsUTF8Len(___str) \
147 AROS_LC1(ULONG, CodesetsUTF8Len, \
148 AROS_LCA(const UTF8 *, (___str), A0), \
149 struct Library *, CODESETS_BASE_NAME, 19, Codesets)
151 #define CodesetsUTF8ToStrA(___attrs) \
152 AROS_LC1(STRPTR, CodesetsUTF8ToStrA, \
153 AROS_LCA(struct TagItem *, (___attrs), A0), \
154 struct Library *, CODESETS_BASE_NAME, 20, Codesets)
156 #ifndef NO_INLINE_STDARG
157 #define CodesetsUTF8ToStr(___attrs, ...) \
158 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsUTF8ToStrA((struct TagItem *) _tags); })
159 #endif /* !NO_INLINE_STDARG */
161 #define CodesetsUTF8CreateA(___attrs) \
162 AROS_LC1(UTF8 *, CodesetsUTF8CreateA, \
163 AROS_LCA(struct TagItem *, (___attrs), A0), \
164 struct Library *, CODESETS_BASE_NAME, 21, Codesets)
166 #ifndef NO_INLINE_STDARG
167 #define CodesetsUTF8Create(___attrs, ...) \
168 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsUTF8CreateA((struct TagItem *) _tags); })
169 #endif /* !NO_INLINE_STDARG */
171 #define CodesetsEncodeB64A(___attrs) \
172 AROS_LC1(ULONG, CodesetsEncodeB64A, \
173 AROS_LCA(struct TagItem *, (___attrs), A0), \
174 struct Library *, CODESETS_BASE_NAME, 22, Codesets)
176 #ifndef NO_INLINE_STDARG
177 #define CodesetsEncodeB64(___attrs, ...) \
178 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsEncodeB64A((struct TagItem *) _tags); })
179 #endif /* !NO_INLINE_STDARG */
181 #define CodesetsDecodeB64A(___attrs) \
182 AROS_LC1(ULONG, CodesetsDecodeB64A, \
183 AROS_LCA(struct TagItem *, (___attrs), A0), \
184 struct Library *, CODESETS_BASE_NAME, 23, Codesets)
186 #ifndef NO_INLINE_STDARG
187 #define CodesetsDecodeB64(___attrs, ...) \
188 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsDecodeB64A((struct TagItem *) _tags); })
189 #endif /* !NO_INLINE_STDARG */
191 #define CodesetsStrLenA(___str, ___attrs) \
192 AROS_LC2(ULONG, CodesetsStrLenA, \
193 AROS_LCA(STRPTR, (___str), A0), \
194 AROS_LCA(struct TagItem *, (___attrs), A1), \
195 struct Library *, CODESETS_BASE_NAME, 24, Codesets)
197 #ifndef NO_INLINE_STDARG
198 #define CodesetsStrLen(___str, ___attrs, ...) \
199 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsStrLenA((___str), (struct TagItem *) _tags); })
200 #endif /* !NO_INLINE_STDARG */
202 #define CodesetsIsValidUTF8(___str) \
203 AROS_LC1(BOOL, CodesetsIsValidUTF8, \
204 AROS_LCA(STRPTR, (___str), A0), \
205 struct Library *, CODESETS_BASE_NAME, 25, Codesets)
207 #define CodesetsFreeVecPooledA(___pool, ___mem, ___attrs) \
208 AROS_LC3NR(void, CodesetsFreeVecPooledA, \
209 AROS_LCA(APTR, (___pool), A0), \
210 AROS_LCA(APTR, (___mem), A1), \
211 AROS_LCA(struct TagItem *, (___attrs), A2), \
212 struct Library *, CODESETS_BASE_NAME, 26, Codesets)
214 #ifndef NO_INLINE_STDARG
215 #define CodesetsFreeVecPooled(___pool, ___mem, ___attrs, ...) \
216 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsFreeVecPooledA((___pool), (___mem), (struct TagItem *) _tags); })
217 #endif /* !NO_INLINE_STDARG */
219 #define CodesetsConvertStrA(___attrs) \
220 AROS_LC1(STRPTR, CodesetsConvertStrA, \
221 AROS_LCA(struct TagItem *, (___attrs), A0), \
222 struct Library *, CODESETS_BASE_NAME, 27, Codesets)
224 #ifndef NO_INLINE_STDARG
225 #define CodesetsConvertStr(___attrs, ...) \
226 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsConvertStrA((struct TagItem *) _tags); })
227 #endif /* !NO_INLINE_STDARG */
229 #define CodesetsListCreateA(___attrs) \
230 AROS_LC1(struct codesetList *, CodesetsListCreateA, \
231 AROS_LCA(struct TagItem *, (___attrs), A0), \
232 struct Library *, CODESETS_BASE_NAME, 28, Codesets)
234 #ifndef NO_INLINE_STDARG
235 #define CodesetsListCreate(___attrs, ...) \
236 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsListCreateA((struct TagItem *) _tags); })
237 #endif /* !NO_INLINE_STDARG */
239 #define CodesetsListDeleteA(___attrs) \
240 AROS_LC1(BOOL, CodesetsListDeleteA, \
241 AROS_LCA(struct TagItem *, (___attrs), A0), \
242 struct Library *, CODESETS_BASE_NAME, 29, Codesets)
244 #ifndef NO_INLINE_STDARG
245 #define CodesetsListDelete(___tag1, ...) \
246 ({_sfdc_vararg _tags[] = { ___tag1, __VA_ARGS__ }; CodesetsListDeleteA((struct TagItem *) _tags); })
247 #endif /* !NO_INLINE_STDARG */
249 #define CodesetsListAddA(___codesetsList, ___attrs) \
250 AROS_LC2(BOOL, CodesetsListAddA, \
251 AROS_LCA(struct codesetList *, (___codesetsList), A0), \
252 AROS_LCA(struct TagItem *, (___attrs), A1), \
253 struct Library *, CODESETS_BASE_NAME, 30, Codesets)
255 #ifndef NO_INLINE_STDARG
256 #define CodesetsListAdd(___codesetsList, ___attrs, ...) \
257 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsListAddA((___codesetsList), (struct TagItem *) _tags); })
258 #endif /* !NO_INLINE_STDARG */
260 #define CodesetsListRemoveA(___attrs) \
261 AROS_LC1(BOOL, CodesetsListRemoveA, \
262 AROS_LCA(struct TagItem *, (___attrs), A0), \
263 struct Library *, CODESETS_BASE_NAME, 31, Codesets)
265 #ifndef NO_INLINE_STDARG
266 #define CodesetsListRemove(___tag1, ...) \
267 ({_sfdc_vararg _tags[] = { ___tag1, __VA_ARGS__ }; CodesetsListRemoveA((struct TagItem *) _tags); })
268 #endif /* !NO_INLINE_STDARG */
270 #endif /* !_INLINE_CODESETS_H */