1 | /* ************************************************************************** */
|
---|
2 | /* * For conditions of distribution and use, * */
|
---|
3 | /* * see copyright notice in libmng.h * */
|
---|
4 | /* ************************************************************************** */
|
---|
5 | /* * * */
|
---|
6 | /* * project : libmng * */
|
---|
7 | /* * file : libmng_callback_xs.c copyright (c) 2000 G.Juyn * */
|
---|
8 | /* * version : 1.0.2 * */
|
---|
9 | /* * * */
|
---|
10 | /* * purpose : callback get/set interface (implementation) * */
|
---|
11 | /* * * */
|
---|
12 | /* * author : G.Juyn * */
|
---|
13 | /* * web : http://www.3-t.com * */
|
---|
14 | /* * email : mailto:info@3-t.com * */
|
---|
15 | /* * * */
|
---|
16 | /* * comment : implementation of the callback get/set functions * */
|
---|
17 | /* * * */
|
---|
18 | /* * changes : 0.5.1 - 05/08/2000 - G.Juyn * */
|
---|
19 | /* * - fixed calling convention * */
|
---|
20 | /* * - changed strict-ANSI stuff * */
|
---|
21 | /* * 0.5.1 - 05/12/2000 - G.Juyn * */
|
---|
22 | /* * - changed trace to macro for callback error-reporting * */
|
---|
23 | /* * * */
|
---|
24 | /* * 0.5.2 - 05/31/2000 - G.Juyn * */
|
---|
25 | /* * - fixed up punctuation (contribution by Tim Rowley) * */
|
---|
26 | /* * 0.5.2 - 06/02/2000 - G.Juyn * */
|
---|
27 | /* * - added getalphaline callback for RGB8_A8 canvasstyle * */
|
---|
28 | /* * * */
|
---|
29 | /* * 0.9.1 - 07/15/2000 - G.Juyn * */
|
---|
30 | /* * - added callbacks for SAVE/SEEK processing * */
|
---|
31 | /* * * */
|
---|
32 | /* * 0.9.2 - 08/05/2000 - G.Juyn * */
|
---|
33 | /* * - changed file-prefixes * */
|
---|
34 | /* * * */
|
---|
35 | /* * 0.9.3 - 10/11/2000 - G.Juyn * */
|
---|
36 | /* * - added support for nEED * */
|
---|
37 | /* * 0.9.3 - 10/17/2000 - G.Juyn * */
|
---|
38 | /* * - added callback to process non-critical unknown chunks * */
|
---|
39 | /* * * */
|
---|
40 | /* * 1.0.1 - 02/08/2001 - G.Juyn * */
|
---|
41 | /* * - added MEND processing callback * */
|
---|
42 | /* * * */
|
---|
43 | /* * 1.0.2 - 06/23/2001 - G.Juyn * */
|
---|
44 | /* * - added processterm callback * */
|
---|
45 | /* * * */
|
---|
46 | /* ************************************************************************** */
|
---|
47 |
|
---|
48 | #include "libmng.h"
|
---|
49 | #include "libmng_data.h"
|
---|
50 | #include "libmng_error.h"
|
---|
51 | #include "libmng_trace.h"
|
---|
52 | #ifdef __BORLANDC__
|
---|
53 | #pragma hdrstop
|
---|
54 | #endif
|
---|
55 |
|
---|
56 | #if defined(__BORLANDC__) && defined(MNG_STRICT_ANSI)
|
---|
57 | #pragma option -A /* force ANSI-C */
|
---|
58 | #endif
|
---|
59 |
|
---|
60 | /* ************************************************************************** */
|
---|
61 | /* * * */
|
---|
62 | /* * Callback set functions * */
|
---|
63 | /* * * */
|
---|
64 | /* ************************************************************************** */
|
---|
65 |
|
---|
66 | #ifndef MNG_INTERNAL_MEMMNGMT
|
---|
67 | mng_retcode MNG_DECL mng_setcb_memalloc (mng_handle hHandle,
|
---|
68 | mng_memalloc fProc)
|
---|
69 | {
|
---|
70 | #ifdef MNG_SUPPORT_TRACE
|
---|
71 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_MEMALLOC, MNG_LC_START)
|
---|
72 | #endif
|
---|
73 |
|
---|
74 | MNG_VALIDHANDLE (hHandle)
|
---|
75 | ((mng_datap)hHandle)->fMemalloc = fProc;
|
---|
76 |
|
---|
77 | #ifdef MNG_SUPPORT_TRACE
|
---|
78 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_MEMALLOC, MNG_LC_END)
|
---|
79 | #endif
|
---|
80 |
|
---|
81 | return MNG_NOERROR;
|
---|
82 | }
|
---|
83 | #endif /* MNG_INTERNAL_MEMMNGMT */
|
---|
84 |
|
---|
85 | /* ************************************************************************** */
|
---|
86 |
|
---|
87 | #ifndef MNG_INTERNAL_MEMMNGMT
|
---|
88 | mng_retcode MNG_DECL mng_setcb_memfree (mng_handle hHandle,
|
---|
89 | mng_memfree fProc)
|
---|
90 | {
|
---|
91 | #ifdef MNG_SUPPORT_TRACE
|
---|
92 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_MEMFREE, MNG_LC_START)
|
---|
93 | #endif
|
---|
94 |
|
---|
95 | MNG_VALIDHANDLE (hHandle)
|
---|
96 | ((mng_datap)hHandle)->fMemfree = fProc;
|
---|
97 |
|
---|
98 | #ifdef MNG_SUPPORT_TRACE
|
---|
99 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_MEMFREE, MNG_LC_END)
|
---|
100 | #endif
|
---|
101 |
|
---|
102 | return MNG_NOERROR;
|
---|
103 | }
|
---|
104 | #endif /* MNG_INTERNAL_MEMMNGMT */
|
---|
105 |
|
---|
106 | /* ************************************************************************** */
|
---|
107 |
|
---|
108 | #if defined(MNG_SUPPORT_READ) || defined(MNG_SUPPORT_WRITE)
|
---|
109 | mng_retcode MNG_DECL mng_setcb_openstream (mng_handle hHandle,
|
---|
110 | mng_openstream fProc)
|
---|
111 | {
|
---|
112 | #ifdef MNG_SUPPORT_TRACE
|
---|
113 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_OPENSTREAM, MNG_LC_START)
|
---|
114 | #endif
|
---|
115 |
|
---|
116 | MNG_VALIDHANDLE (hHandle)
|
---|
117 | ((mng_datap)hHandle)->fOpenstream = fProc;
|
---|
118 |
|
---|
119 | #ifdef MNG_SUPPORT_TRACE
|
---|
120 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_OPENSTREAM, MNG_LC_END)
|
---|
121 | #endif
|
---|
122 |
|
---|
123 | return MNG_NOERROR;
|
---|
124 | }
|
---|
125 | #endif /* MNG_SUPPORT_READ || MNG_SUPPORT_WRITE */
|
---|
126 |
|
---|
127 | /* ************************************************************************** */
|
---|
128 |
|
---|
129 | #if defined(MNG_SUPPORT_READ) || defined(MNG_SUPPORT_WRITE)
|
---|
130 | mng_retcode MNG_DECL mng_setcb_closestream (mng_handle hHandle,
|
---|
131 | mng_closestream fProc)
|
---|
132 | {
|
---|
133 | #ifdef MNG_SUPPORT_TRACE
|
---|
134 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_CLOSESTREAM, MNG_LC_START)
|
---|
135 | #endif
|
---|
136 |
|
---|
137 | MNG_VALIDHANDLE (hHandle)
|
---|
138 | ((mng_datap)hHandle)->fClosestream = fProc;
|
---|
139 |
|
---|
140 | #ifdef MNG_SUPPORT_TRACE
|
---|
141 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_CLOSESTREAM, MNG_LC_END)
|
---|
142 | #endif
|
---|
143 |
|
---|
144 | return MNG_NOERROR;
|
---|
145 | }
|
---|
146 | #endif /* MNG_SUPPORT_READ || MNG_SUPPORT_WRITE */
|
---|
147 |
|
---|
148 | /* ************************************************************************** */
|
---|
149 |
|
---|
150 | #ifdef MNG_SUPPORT_READ
|
---|
151 | mng_retcode MNG_DECL mng_setcb_readdata (mng_handle hHandle,
|
---|
152 | mng_readdata fProc)
|
---|
153 | {
|
---|
154 | #ifdef MNG_SUPPORT_TRACE
|
---|
155 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_READDATA, MNG_LC_START)
|
---|
156 | #endif
|
---|
157 |
|
---|
158 | MNG_VALIDHANDLE (hHandle)
|
---|
159 | ((mng_datap)hHandle)->fReaddata = fProc;
|
---|
160 |
|
---|
161 | #ifdef MNG_SUPPORT_TRACE
|
---|
162 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_READDATA, MNG_LC_END)
|
---|
163 | #endif
|
---|
164 |
|
---|
165 | return MNG_NOERROR;
|
---|
166 | }
|
---|
167 | #endif /* MNG_SUPPORT_READ */
|
---|
168 |
|
---|
169 | /* ************************************************************************** */
|
---|
170 |
|
---|
171 | #ifdef MNG_SUPPORT_WRITE
|
---|
172 | mng_retcode MNG_DECL mng_setcb_writedata (mng_handle hHandle,
|
---|
173 | mng_writedata fProc)
|
---|
174 | {
|
---|
175 | #ifdef MNG_SUPPORT_TRACE
|
---|
176 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_WRITEDATA, MNG_LC_START)
|
---|
177 | #endif
|
---|
178 |
|
---|
179 | MNG_VALIDHANDLE (hHandle)
|
---|
180 | ((mng_datap)hHandle)->fWritedata = fProc;
|
---|
181 |
|
---|
182 | #ifdef MNG_SUPPORT_TRACE
|
---|
183 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_WRITEDATA, MNG_LC_END)
|
---|
184 | #endif
|
---|
185 |
|
---|
186 | return MNG_NOERROR;
|
---|
187 | }
|
---|
188 | #endif /* MNG_SUPPORT_WRITE */
|
---|
189 |
|
---|
190 | /* ************************************************************************** */
|
---|
191 |
|
---|
192 | mng_retcode MNG_DECL mng_setcb_errorproc (mng_handle hHandle,
|
---|
193 | mng_errorproc fProc)
|
---|
194 | {
|
---|
195 | #ifdef MNG_SUPPORT_TRACE
|
---|
196 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_ERRORPROC, MNG_LC_START)
|
---|
197 | #endif
|
---|
198 |
|
---|
199 | MNG_VALIDHANDLE (hHandle)
|
---|
200 | ((mng_datap)hHandle)->fErrorproc = fProc;
|
---|
201 |
|
---|
202 | #ifdef MNG_SUPPORT_TRACE
|
---|
203 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_ERRORPROC, MNG_LC_END)
|
---|
204 | #endif
|
---|
205 |
|
---|
206 | return MNG_NOERROR;
|
---|
207 | }
|
---|
208 |
|
---|
209 | /* ************************************************************************** */
|
---|
210 |
|
---|
211 | #ifdef MNG_SUPPORT_TRACE
|
---|
212 | mng_retcode MNG_DECL mng_setcb_traceproc (mng_handle hHandle,
|
---|
213 | mng_traceproc fProc)
|
---|
214 | {
|
---|
215 | #ifdef MNG_SUPPORT_TRACE
|
---|
216 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_TRACEPROC, MNG_LC_START)
|
---|
217 | #endif
|
---|
218 |
|
---|
219 | MNG_VALIDHANDLE (hHandle)
|
---|
220 | ((mng_datap)hHandle)->fTraceproc = fProc;
|
---|
221 |
|
---|
222 | #ifdef MNG_SUPPORT_TRACE
|
---|
223 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_TRACEPROC, MNG_LC_END)
|
---|
224 | #endif
|
---|
225 |
|
---|
226 | return MNG_NOERROR;
|
---|
227 | }
|
---|
228 | #endif /* MNG_SUPPORT_TRACE */
|
---|
229 |
|
---|
230 | /* ************************************************************************** */
|
---|
231 |
|
---|
232 | #ifdef MNG_SUPPORT_READ
|
---|
233 | mng_retcode MNG_DECL mng_setcb_processheader (mng_handle hHandle,
|
---|
234 | mng_processheader fProc)
|
---|
235 | {
|
---|
236 | #ifdef MNG_SUPPORT_TRACE
|
---|
237 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSHEADER, MNG_LC_START)
|
---|
238 | #endif
|
---|
239 |
|
---|
240 | MNG_VALIDHANDLE (hHandle)
|
---|
241 | ((mng_datap)hHandle)->fProcessheader = fProc;
|
---|
242 |
|
---|
243 | #ifdef MNG_SUPPORT_TRACE
|
---|
244 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSHEADER, MNG_LC_END)
|
---|
245 | #endif
|
---|
246 |
|
---|
247 | return MNG_NOERROR;
|
---|
248 | }
|
---|
249 | #endif /* MNG_SUPPORT_READ */
|
---|
250 |
|
---|
251 | /* ************************************************************************** */
|
---|
252 |
|
---|
253 | #ifdef MNG_SUPPORT_READ
|
---|
254 | mng_retcode MNG_DECL mng_setcb_processtext (mng_handle hHandle,
|
---|
255 | mng_processtext fProc)
|
---|
256 | {
|
---|
257 | #ifdef MNG_SUPPORT_TRACE
|
---|
258 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSTEXT, MNG_LC_START)
|
---|
259 | #endif
|
---|
260 |
|
---|
261 | MNG_VALIDHANDLE (hHandle)
|
---|
262 | ((mng_datap)hHandle)->fProcesstext = fProc;
|
---|
263 |
|
---|
264 | #ifdef MNG_SUPPORT_TRACE
|
---|
265 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSTEXT, MNG_LC_END)
|
---|
266 | #endif
|
---|
267 |
|
---|
268 | return MNG_NOERROR;
|
---|
269 | }
|
---|
270 | #endif /* MNG_SUPPORT_READ */
|
---|
271 |
|
---|
272 | /* ************************************************************************** */
|
---|
273 |
|
---|
274 | #ifdef MNG_SUPPORT_READ
|
---|
275 | mng_retcode MNG_DECL mng_setcb_processsave (mng_handle hHandle,
|
---|
276 | mng_processsave fProc)
|
---|
277 | {
|
---|
278 | #ifdef MNG_SUPPORT_TRACE
|
---|
279 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSSAVE, MNG_LC_START)
|
---|
280 | #endif
|
---|
281 |
|
---|
282 | MNG_VALIDHANDLE (hHandle)
|
---|
283 | ((mng_datap)hHandle)->fProcesssave = fProc;
|
---|
284 |
|
---|
285 | #ifdef MNG_SUPPORT_TRACE
|
---|
286 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSSAVE, MNG_LC_END)
|
---|
287 | #endif
|
---|
288 |
|
---|
289 | return MNG_NOERROR;
|
---|
290 | }
|
---|
291 | #endif /* MNG_SUPPORT_READ */
|
---|
292 |
|
---|
293 | /* ************************************************************************** */
|
---|
294 |
|
---|
295 | #ifdef MNG_SUPPORT_READ
|
---|
296 | mng_retcode MNG_DECL mng_setcb_processseek (mng_handle hHandle,
|
---|
297 | mng_processseek fProc)
|
---|
298 | {
|
---|
299 | #ifdef MNG_SUPPORT_TRACE
|
---|
300 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSSEEK, MNG_LC_START)
|
---|
301 | #endif
|
---|
302 |
|
---|
303 | MNG_VALIDHANDLE (hHandle)
|
---|
304 | ((mng_datap)hHandle)->fProcessseek = fProc;
|
---|
305 |
|
---|
306 | #ifdef MNG_SUPPORT_TRACE
|
---|
307 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSSEEK, MNG_LC_END)
|
---|
308 | #endif
|
---|
309 |
|
---|
310 | return MNG_NOERROR;
|
---|
311 | }
|
---|
312 | #endif /* MNG_SUPPORT_READ */
|
---|
313 |
|
---|
314 | /* ************************************************************************** */
|
---|
315 |
|
---|
316 | #ifdef MNG_SUPPORT_READ
|
---|
317 | mng_retcode MNG_DECL mng_setcb_processneed (mng_handle hHandle,
|
---|
318 | mng_processneed fProc)
|
---|
319 | {
|
---|
320 | #ifdef MNG_SUPPORT_TRACE
|
---|
321 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSNEED, MNG_LC_START)
|
---|
322 | #endif
|
---|
323 |
|
---|
324 | MNG_VALIDHANDLE (hHandle)
|
---|
325 | ((mng_datap)hHandle)->fProcessneed = fProc;
|
---|
326 |
|
---|
327 | #ifdef MNG_SUPPORT_TRACE
|
---|
328 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSNEED, MNG_LC_END)
|
---|
329 | #endif
|
---|
330 |
|
---|
331 | return MNG_NOERROR;
|
---|
332 | }
|
---|
333 | #endif /* MNG_SUPPORT_READ */
|
---|
334 |
|
---|
335 | /* ************************************************************************** */
|
---|
336 |
|
---|
337 | #ifdef MNG_SUPPORT_READ
|
---|
338 | mng_retcode MNG_DECL mng_setcb_processmend (mng_handle hHandle,
|
---|
339 | mng_processmend fProc)
|
---|
340 | {
|
---|
341 | #ifdef MNG_SUPPORT_TRACE
|
---|
342 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSMEND, MNG_LC_START)
|
---|
343 | #endif
|
---|
344 |
|
---|
345 | MNG_VALIDHANDLE (hHandle)
|
---|
346 | ((mng_datap)hHandle)->fProcessmend = fProc;
|
---|
347 |
|
---|
348 | #ifdef MNG_SUPPORT_TRACE
|
---|
349 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSMEND, MNG_LC_END)
|
---|
350 | #endif
|
---|
351 |
|
---|
352 | return MNG_NOERROR;
|
---|
353 | }
|
---|
354 | #endif /* MNG_SUPPORT_READ */
|
---|
355 |
|
---|
356 | /* ************************************************************************** */
|
---|
357 |
|
---|
358 | #ifdef MNG_SUPPORT_READ
|
---|
359 | mng_retcode MNG_DECL mng_setcb_processunknown (mng_handle hHandle,
|
---|
360 | mng_processunknown fProc)
|
---|
361 | {
|
---|
362 | #ifdef MNG_SUPPORT_TRACE
|
---|
363 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSUNKNOWN, MNG_LC_START)
|
---|
364 | #endif
|
---|
365 |
|
---|
366 | MNG_VALIDHANDLE (hHandle)
|
---|
367 | ((mng_datap)hHandle)->fProcessunknown = fProc;
|
---|
368 |
|
---|
369 | #ifdef MNG_SUPPORT_TRACE
|
---|
370 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSUNKNOWN, MNG_LC_END)
|
---|
371 | #endif
|
---|
372 |
|
---|
373 | return MNG_NOERROR;
|
---|
374 | }
|
---|
375 | #endif /* MNG_SUPPORT_READ */
|
---|
376 |
|
---|
377 | /* ************************************************************************** */
|
---|
378 |
|
---|
379 | #ifdef MNG_SUPPORT_READ
|
---|
380 | mng_retcode MNG_DECL mng_setcb_processterm (mng_handle hHandle,
|
---|
381 | mng_processterm fProc)
|
---|
382 | {
|
---|
383 | #ifdef MNG_SUPPORT_TRACE
|
---|
384 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSTERM, MNG_LC_START)
|
---|
385 | #endif
|
---|
386 |
|
---|
387 | MNG_VALIDHANDLE (hHandle)
|
---|
388 | ((mng_datap)hHandle)->fProcessterm = fProc;
|
---|
389 |
|
---|
390 | #ifdef MNG_SUPPORT_TRACE
|
---|
391 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSTERM, MNG_LC_END)
|
---|
392 | #endif
|
---|
393 |
|
---|
394 | return MNG_NOERROR;
|
---|
395 | }
|
---|
396 | #endif /* MNG_SUPPORT_READ */
|
---|
397 |
|
---|
398 | /* ************************************************************************** */
|
---|
399 |
|
---|
400 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
401 | mng_retcode MNG_DECL mng_setcb_getcanvasline (mng_handle hHandle,
|
---|
402 | mng_getcanvasline fProc)
|
---|
403 | {
|
---|
404 | #ifdef MNG_SUPPORT_TRACE
|
---|
405 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_GETCANVASLINE, MNG_LC_START)
|
---|
406 | #endif
|
---|
407 |
|
---|
408 | MNG_VALIDHANDLE (hHandle)
|
---|
409 | ((mng_datap)hHandle)->fGetcanvasline = fProc;
|
---|
410 |
|
---|
411 | #ifdef MNG_SUPPORT_TRACE
|
---|
412 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_GETCANVASLINE, MNG_LC_END)
|
---|
413 | #endif
|
---|
414 |
|
---|
415 | return MNG_NOERROR;
|
---|
416 | }
|
---|
417 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
418 |
|
---|
419 | /* ************************************************************************** */
|
---|
420 |
|
---|
421 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
422 | mng_retcode MNG_DECL mng_setcb_getbkgdline (mng_handle hHandle,
|
---|
423 | mng_getbkgdline fProc)
|
---|
424 | {
|
---|
425 | #ifdef MNG_SUPPORT_TRACE
|
---|
426 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_GETBKGDLINE, MNG_LC_START)
|
---|
427 | #endif
|
---|
428 |
|
---|
429 | MNG_VALIDHANDLE (hHandle)
|
---|
430 | ((mng_datap)hHandle)->fGetbkgdline = fProc;
|
---|
431 |
|
---|
432 | #ifdef MNG_SUPPORT_TRACE
|
---|
433 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_GETBKGDLINE, MNG_LC_END)
|
---|
434 | #endif
|
---|
435 |
|
---|
436 | return MNG_NOERROR;
|
---|
437 | }
|
---|
438 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
439 |
|
---|
440 | /* ************************************************************************** */
|
---|
441 |
|
---|
442 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
443 | mng_retcode MNG_DECL mng_setcb_getalphaline (mng_handle hHandle,
|
---|
444 | mng_getalphaline fProc)
|
---|
445 | {
|
---|
446 | #ifdef MNG_SUPPORT_TRACE
|
---|
447 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_GETALPHALINE, MNG_LC_START)
|
---|
448 | #endif
|
---|
449 |
|
---|
450 | MNG_VALIDHANDLE (hHandle)
|
---|
451 | ((mng_datap)hHandle)->fGetalphaline = fProc;
|
---|
452 |
|
---|
453 | #ifdef MNG_SUPPORT_TRACE
|
---|
454 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_GETALPHALINE, MNG_LC_END)
|
---|
455 | #endif
|
---|
456 |
|
---|
457 | return MNG_NOERROR;
|
---|
458 | }
|
---|
459 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
460 |
|
---|
461 | /* ************************************************************************** */
|
---|
462 |
|
---|
463 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
464 | mng_retcode MNG_DECL mng_setcb_refresh (mng_handle hHandle,
|
---|
465 | mng_refresh fProc)
|
---|
466 | {
|
---|
467 | #ifdef MNG_SUPPORT_TRACE
|
---|
468 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_REFRESH, MNG_LC_START)
|
---|
469 | #endif
|
---|
470 |
|
---|
471 | MNG_VALIDHANDLE (hHandle)
|
---|
472 | ((mng_datap)hHandle)->fRefresh = fProc;
|
---|
473 |
|
---|
474 | #ifdef MNG_SUPPORT_TRACE
|
---|
475 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_REFRESH, MNG_LC_END)
|
---|
476 | #endif
|
---|
477 |
|
---|
478 | return MNG_NOERROR;
|
---|
479 | }
|
---|
480 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
481 |
|
---|
482 | /* ************************************************************************** */
|
---|
483 |
|
---|
484 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
485 | mng_retcode MNG_DECL mng_setcb_gettickcount (mng_handle hHandle,
|
---|
486 | mng_gettickcount fProc)
|
---|
487 | {
|
---|
488 | #ifdef MNG_SUPPORT_TRACE
|
---|
489 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_GETTICKCOUNT, MNG_LC_START)
|
---|
490 | #endif
|
---|
491 |
|
---|
492 | MNG_VALIDHANDLE (hHandle)
|
---|
493 | ((mng_datap)hHandle)->fGettickcount = fProc;
|
---|
494 |
|
---|
495 | #ifdef MNG_SUPPORT_TRACE
|
---|
496 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_GETTICKCOUNT, MNG_LC_END)
|
---|
497 | #endif
|
---|
498 |
|
---|
499 | return MNG_NOERROR;
|
---|
500 | }
|
---|
501 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
502 |
|
---|
503 | /* ************************************************************************** */
|
---|
504 |
|
---|
505 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
506 | mng_retcode MNG_DECL mng_setcb_settimer (mng_handle hHandle,
|
---|
507 | mng_settimer fProc)
|
---|
508 | {
|
---|
509 | #ifdef MNG_SUPPORT_TRACE
|
---|
510 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_SETTIMER, MNG_LC_START)
|
---|
511 | #endif
|
---|
512 |
|
---|
513 | MNG_VALIDHANDLE (hHandle)
|
---|
514 | ((mng_datap)hHandle)->fSettimer = fProc;
|
---|
515 |
|
---|
516 | #ifdef MNG_SUPPORT_TRACE
|
---|
517 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_SETTIMER, MNG_LC_END)
|
---|
518 | #endif
|
---|
519 |
|
---|
520 | return MNG_NOERROR;
|
---|
521 | }
|
---|
522 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
523 |
|
---|
524 | /* ************************************************************************** */
|
---|
525 |
|
---|
526 | #if defined(MNG_SUPPORT_DISPLAY) && defined(MNG_APP_CMS)
|
---|
527 | mng_retcode MNG_DECL mng_setcb_processgamma (mng_handle hHandle,
|
---|
528 | mng_processgamma fProc)
|
---|
529 | {
|
---|
530 | #ifdef MNG_SUPPORT_TRACE
|
---|
531 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSGAMA, MNG_LC_START)
|
---|
532 | #endif
|
---|
533 |
|
---|
534 | MNG_VALIDHANDLE (hHandle)
|
---|
535 | ((mng_datap)hHandle)->fProcessgamma = fProc;
|
---|
536 |
|
---|
537 | #ifdef MNG_SUPPORT_TRACE
|
---|
538 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSGAMA, MNG_LC_END)
|
---|
539 | #endif
|
---|
540 |
|
---|
541 | return MNG_NOERROR;
|
---|
542 | }
|
---|
543 | #endif /* MNG_SUPPORT_DISPLAY && MNG_APP_CMS */
|
---|
544 |
|
---|
545 | /* ************************************************************************** */
|
---|
546 |
|
---|
547 | #if defined(MNG_SUPPORT_DISPLAY) && defined(MNG_APP_CMS)
|
---|
548 | mng_retcode MNG_DECL mng_setcb_processchroma (mng_handle hHandle,
|
---|
549 | mng_processchroma fProc)
|
---|
550 | {
|
---|
551 | #ifdef MNG_SUPPORT_TRACE
|
---|
552 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSCHROMA, MNG_LC_START)
|
---|
553 | #endif
|
---|
554 |
|
---|
555 | MNG_VALIDHANDLE (hHandle)
|
---|
556 | ((mng_datap)hHandle)->fProcesschroma = fProc;
|
---|
557 |
|
---|
558 | #ifdef MNG_SUPPORT_TRACE
|
---|
559 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSCHROMA, MNG_LC_END)
|
---|
560 | #endif
|
---|
561 |
|
---|
562 | return MNG_NOERROR;
|
---|
563 | }
|
---|
564 | #endif /* MNG_SUPPORT_DISPLAY && MNG_APP_CMS */
|
---|
565 |
|
---|
566 | /* ************************************************************************** */
|
---|
567 |
|
---|
568 | #if defined(MNG_SUPPORT_DISPLAY) && defined(MNG_APP_CMS)
|
---|
569 | mng_retcode MNG_DECL mng_setcb_processsrgb (mng_handle hHandle,
|
---|
570 | mng_processsrgb fProc)
|
---|
571 | {
|
---|
572 | #ifdef MNG_SUPPORT_TRACE
|
---|
573 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSSRGB, MNG_LC_START)
|
---|
574 | #endif
|
---|
575 |
|
---|
576 | MNG_VALIDHANDLE (hHandle)
|
---|
577 | ((mng_datap)hHandle)->fProcesssrgb = fProc;
|
---|
578 |
|
---|
579 | #ifdef MNG_SUPPORT_TRACE
|
---|
580 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSSRGB, MNG_LC_END)
|
---|
581 | #endif
|
---|
582 |
|
---|
583 | return MNG_NOERROR;
|
---|
584 | }
|
---|
585 | #endif /* MNG_SUPPORT_DISPLAY && MNG_APP_CMS */
|
---|
586 |
|
---|
587 | /* ************************************************************************** */
|
---|
588 |
|
---|
589 | #if defined(MNG_SUPPORT_DISPLAY) && defined(MNG_APP_CMS)
|
---|
590 | mng_retcode MNG_DECL mng_setcb_processiccp (mng_handle hHandle,
|
---|
591 | mng_processiccp fProc)
|
---|
592 | {
|
---|
593 | #ifdef MNG_SUPPORT_TRACE
|
---|
594 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSICCP, MNG_LC_START)
|
---|
595 | #endif
|
---|
596 |
|
---|
597 | MNG_VALIDHANDLE (hHandle)
|
---|
598 | ((mng_datap)hHandle)->fProcessiccp = fProc;
|
---|
599 |
|
---|
600 | #ifdef MNG_SUPPORT_TRACE
|
---|
601 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSICCP, MNG_LC_END)
|
---|
602 | #endif
|
---|
603 |
|
---|
604 | return MNG_NOERROR;
|
---|
605 | }
|
---|
606 | #endif /* MNG_SUPPORT_DISPLAY && MNG_APP_CMS */
|
---|
607 |
|
---|
608 | /* ************************************************************************** */
|
---|
609 |
|
---|
610 | #if defined(MNG_SUPPORT_DISPLAY) && defined(MNG_APP_CMS)
|
---|
611 | mng_retcode MNG_DECL mng_setcb_processarow (mng_handle hHandle,
|
---|
612 | mng_processarow fProc)
|
---|
613 | {
|
---|
614 | #ifdef MNG_SUPPORT_TRACE
|
---|
615 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSAROW, MNG_LC_START)
|
---|
616 | #endif
|
---|
617 |
|
---|
618 | MNG_VALIDHANDLE (hHandle)
|
---|
619 | ((mng_datap)hHandle)->fProcessarow = fProc;
|
---|
620 |
|
---|
621 | #ifdef MNG_SUPPORT_TRACE
|
---|
622 | MNG_TRACE (((mng_datap)hHandle), MNG_FN_SETCB_PROCESSAROW, MNG_LC_END)
|
---|
623 | #endif
|
---|
624 |
|
---|
625 | return MNG_NOERROR;
|
---|
626 | }
|
---|
627 | #endif /* MNG_SUPPORT_DISPLAY && MNG_APP_CMS */
|
---|
628 |
|
---|
629 | /* ************************************************************************** */
|
---|
630 | /* * * */
|
---|
631 | /* * Callback get functions * */
|
---|
632 | /* * * */
|
---|
633 | /* ************************************************************************** */
|
---|
634 |
|
---|
635 | #ifndef MNG_INTERNAL_MEMMNGMT
|
---|
636 | mng_memalloc MNG_DECL mng_getcb_memalloc (mng_handle hHandle)
|
---|
637 | {
|
---|
638 | #ifdef MNG_SUPPORT_TRACE
|
---|
639 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_MEMALLOC, MNG_LC_START)
|
---|
640 | #endif
|
---|
641 |
|
---|
642 | MNG_VALIDHANDLEX (hHandle)
|
---|
643 |
|
---|
644 | #ifdef MNG_SUPPORT_TRACE
|
---|
645 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_MEMALLOC, MNG_LC_END)
|
---|
646 | #endif
|
---|
647 |
|
---|
648 | return ((mng_datap)hHandle)->fMemalloc;
|
---|
649 | }
|
---|
650 | #endif /* MNG_INTERNAL_MEMMNGMT */
|
---|
651 |
|
---|
652 | /* ************************************************************************** */
|
---|
653 |
|
---|
654 | #ifndef MNG_INTERNAL_MEMMNGMT
|
---|
655 | mng_memfree MNG_DECL mng_getcb_memfree (mng_handle hHandle)
|
---|
656 | {
|
---|
657 | #ifdef MNG_SUPPORT_TRACE
|
---|
658 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_MEMFREE, MNG_LC_START)
|
---|
659 | #endif
|
---|
660 |
|
---|
661 | MNG_VALIDHANDLEX (hHandle)
|
---|
662 |
|
---|
663 | #ifdef MNG_SUPPORT_TRACE
|
---|
664 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_MEMFREE, MNG_LC_END)
|
---|
665 | #endif
|
---|
666 |
|
---|
667 | return ((mng_datap)hHandle)->fMemfree;
|
---|
668 | }
|
---|
669 | #endif /* MNG_INTERNAL_MEMMNGMT */
|
---|
670 |
|
---|
671 | /* ************************************************************************** */
|
---|
672 |
|
---|
673 | #ifdef MNG_SUPPORT_READ
|
---|
674 | mng_readdata MNG_DECL mng_getcb_readdata (mng_handle hHandle)
|
---|
675 | {
|
---|
676 | #ifdef MNG_SUPPORT_TRACE
|
---|
677 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_READDATA, MNG_LC_START)
|
---|
678 | #endif
|
---|
679 |
|
---|
680 | MNG_VALIDHANDLEX (hHandle)
|
---|
681 |
|
---|
682 | #ifdef MNG_SUPPORT_TRACE
|
---|
683 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_READDATA, MNG_LC_END)
|
---|
684 | #endif
|
---|
685 |
|
---|
686 | return ((mng_datap)hHandle)->fReaddata;
|
---|
687 | }
|
---|
688 | #endif /* MNG_SUPPORT_READ */
|
---|
689 |
|
---|
690 | /* ************************************************************************** */
|
---|
691 |
|
---|
692 | #if defined(MNG_SUPPORT_READ) || defined(MNG_SUPPORT_WRITE)
|
---|
693 | mng_openstream MNG_DECL mng_getcb_openstream (mng_handle hHandle)
|
---|
694 | {
|
---|
695 | #ifdef MNG_SUPPORT_TRACE
|
---|
696 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_OPENSTREAM, MNG_LC_START)
|
---|
697 | #endif
|
---|
698 |
|
---|
699 | MNG_VALIDHANDLEX (hHandle)
|
---|
700 |
|
---|
701 | #ifdef MNG_SUPPORT_TRACE
|
---|
702 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_OPENSTREAM, MNG_LC_END)
|
---|
703 | #endif
|
---|
704 |
|
---|
705 | return ((mng_datap)hHandle)->fOpenstream;
|
---|
706 | }
|
---|
707 | #endif /* MNG_SUPPORT_READ || MNG_SUPPORT_WRITE */
|
---|
708 |
|
---|
709 | /* ************************************************************************** */
|
---|
710 |
|
---|
711 | #if defined(MNG_SUPPORT_READ) || defined(MNG_SUPPORT_WRITE)
|
---|
712 | mng_closestream MNG_DECL mng_getcb_closestream (mng_handle hHandle)
|
---|
713 | {
|
---|
714 | #ifdef MNG_SUPPORT_TRACE
|
---|
715 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_CLOSESTREAM, MNG_LC_START)
|
---|
716 | #endif
|
---|
717 |
|
---|
718 | MNG_VALIDHANDLEX (hHandle)
|
---|
719 |
|
---|
720 | #ifdef MNG_SUPPORT_TRACE
|
---|
721 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_CLOSESTREAM, MNG_LC_END)
|
---|
722 | #endif
|
---|
723 |
|
---|
724 | return ((mng_datap)hHandle)->fClosestream;
|
---|
725 | }
|
---|
726 | #endif /* MNG_SUPPORT_READ || MNG_SUPPORT_WRITE */
|
---|
727 |
|
---|
728 | /* ************************************************************************** */
|
---|
729 |
|
---|
730 | #ifdef MNG_SUPPORT_WRITE
|
---|
731 | mng_writedata MNG_DECL mng_getcb_writedata (mng_handle hHandle)
|
---|
732 | {
|
---|
733 | #ifdef MNG_SUPPORT_TRACE
|
---|
734 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_WRITEDATA, MNG_LC_START)
|
---|
735 | #endif
|
---|
736 |
|
---|
737 | MNG_VALIDHANDLEX (hHandle)
|
---|
738 |
|
---|
739 | #ifdef MNG_SUPPORT_TRACE
|
---|
740 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_WRITEDATA, MNG_LC_END)
|
---|
741 | #endif
|
---|
742 |
|
---|
743 | return ((mng_datap)hHandle)->fWritedata;
|
---|
744 | }
|
---|
745 | #endif /* MNG_SUPPORT_WRITE */
|
---|
746 |
|
---|
747 | /* ************************************************************************** */
|
---|
748 |
|
---|
749 | mng_errorproc MNG_DECL mng_getcb_errorproc (mng_handle hHandle)
|
---|
750 | {
|
---|
751 | #ifdef MNG_SUPPORT_TRACE
|
---|
752 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_ERRORPROC, MNG_LC_START)
|
---|
753 | #endif
|
---|
754 |
|
---|
755 | MNG_VALIDHANDLEX (hHandle)
|
---|
756 |
|
---|
757 | #ifdef MNG_SUPPORT_TRACE
|
---|
758 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_ERRORPROC, MNG_LC_END)
|
---|
759 | #endif
|
---|
760 |
|
---|
761 | return ((mng_datap)hHandle)->fErrorproc;
|
---|
762 | }
|
---|
763 |
|
---|
764 | /* ************************************************************************** */
|
---|
765 |
|
---|
766 | #ifdef MNG_SUPPORT_TRACE
|
---|
767 | mng_traceproc MNG_DECL mng_getcb_traceproc (mng_handle hHandle)
|
---|
768 | {
|
---|
769 | #ifdef MNG_SUPPORT_TRACE
|
---|
770 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_TRACEPROC, MNG_LC_START)
|
---|
771 | #endif
|
---|
772 |
|
---|
773 | MNG_VALIDHANDLEX (hHandle)
|
---|
774 |
|
---|
775 | #ifdef MNG_SUPPORT_TRACE
|
---|
776 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_TRACEPROC, MNG_LC_END)
|
---|
777 | #endif
|
---|
778 |
|
---|
779 | return ((mng_datap)hHandle)->fTraceproc;
|
---|
780 | }
|
---|
781 | #endif /* MNG_SUPPORT_TRACE */
|
---|
782 |
|
---|
783 | /* ************************************************************************** */
|
---|
784 |
|
---|
785 | #ifdef MNG_SUPPORT_READ
|
---|
786 | mng_processheader MNG_DECL mng_getcb_processheader (mng_handle hHandle)
|
---|
787 | {
|
---|
788 | #ifdef MNG_SUPPORT_TRACE
|
---|
789 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSHEADER, MNG_LC_START)
|
---|
790 | #endif
|
---|
791 |
|
---|
792 | MNG_VALIDHANDLEX (hHandle)
|
---|
793 |
|
---|
794 | #ifdef MNG_SUPPORT_TRACE
|
---|
795 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSHEADER, MNG_LC_END)
|
---|
796 | #endif
|
---|
797 |
|
---|
798 | return ((mng_datap)hHandle)->fProcessheader;
|
---|
799 | }
|
---|
800 | #endif /* MNG_SUPPORT_READ */
|
---|
801 |
|
---|
802 | /* ************************************************************************** */
|
---|
803 |
|
---|
804 | #ifdef MNG_SUPPORT_READ
|
---|
805 | mng_processtext MNG_DECL mng_getcb_processtext (mng_handle hHandle)
|
---|
806 | {
|
---|
807 | #ifdef MNG_SUPPORT_TRACE
|
---|
808 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSTEXT, MNG_LC_START)
|
---|
809 | #endif
|
---|
810 |
|
---|
811 | MNG_VALIDHANDLEX (hHandle)
|
---|
812 |
|
---|
813 | #ifdef MNG_SUPPORT_TRACE
|
---|
814 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSTEXT, MNG_LC_END)
|
---|
815 | #endif
|
---|
816 |
|
---|
817 | return ((mng_datap)hHandle)->fProcesstext;
|
---|
818 | }
|
---|
819 | #endif /* MNG_SUPPORT_READ */
|
---|
820 |
|
---|
821 | /* ************************************************************************** */
|
---|
822 |
|
---|
823 | #ifdef MNG_SUPPORT_READ
|
---|
824 | mng_processsave MNG_DECL mng_getcb_processsave (mng_handle hHandle)
|
---|
825 | {
|
---|
826 | #ifdef MNG_SUPPORT_TRACE
|
---|
827 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSSAVE, MNG_LC_START)
|
---|
828 | #endif
|
---|
829 |
|
---|
830 | MNG_VALIDHANDLEX (hHandle)
|
---|
831 |
|
---|
832 | #ifdef MNG_SUPPORT_TRACE
|
---|
833 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSSAVE, MNG_LC_END)
|
---|
834 | #endif
|
---|
835 |
|
---|
836 | return ((mng_datap)hHandle)->fProcesssave;
|
---|
837 | }
|
---|
838 | #endif /* MNG_SUPPORT_READ */
|
---|
839 |
|
---|
840 | /* ************************************************************************** */
|
---|
841 |
|
---|
842 | #ifdef MNG_SUPPORT_READ
|
---|
843 | mng_processseek MNG_DECL mng_getcb_processseek (mng_handle hHandle)
|
---|
844 | {
|
---|
845 | #ifdef MNG_SUPPORT_TRACE
|
---|
846 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSSEEK, MNG_LC_START)
|
---|
847 | #endif
|
---|
848 |
|
---|
849 | MNG_VALIDHANDLEX (hHandle)
|
---|
850 |
|
---|
851 | #ifdef MNG_SUPPORT_TRACE
|
---|
852 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSSEEK, MNG_LC_END)
|
---|
853 | #endif
|
---|
854 |
|
---|
855 | return ((mng_datap)hHandle)->fProcessseek;
|
---|
856 | }
|
---|
857 | #endif /* MNG_SUPPORT_READ */
|
---|
858 |
|
---|
859 | /* ************************************************************************** */
|
---|
860 |
|
---|
861 | #ifdef MNG_SUPPORT_READ
|
---|
862 | mng_processneed MNG_DECL mng_getcb_processneed (mng_handle hHandle)
|
---|
863 | {
|
---|
864 | #ifdef MNG_SUPPORT_TRACE
|
---|
865 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSNEED, MNG_LC_START)
|
---|
866 | #endif
|
---|
867 |
|
---|
868 | MNG_VALIDHANDLEX (hHandle)
|
---|
869 |
|
---|
870 | #ifdef MNG_SUPPORT_TRACE
|
---|
871 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSNEED, MNG_LC_END)
|
---|
872 | #endif
|
---|
873 |
|
---|
874 | return ((mng_datap)hHandle)->fProcessneed;
|
---|
875 | }
|
---|
876 | #endif /* MNG_SUPPORT_READ */
|
---|
877 |
|
---|
878 | /* ************************************************************************** */
|
---|
879 |
|
---|
880 | #ifdef MNG_SUPPORT_READ
|
---|
881 | mng_processmend MNG_DECL mng_getcb_processmend (mng_handle hHandle)
|
---|
882 | {
|
---|
883 | #ifdef MNG_SUPPORT_TRACE
|
---|
884 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSMEND, MNG_LC_START)
|
---|
885 | #endif
|
---|
886 |
|
---|
887 | MNG_VALIDHANDLEX (hHandle)
|
---|
888 |
|
---|
889 | #ifdef MNG_SUPPORT_TRACE
|
---|
890 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSMEND, MNG_LC_END)
|
---|
891 | #endif
|
---|
892 |
|
---|
893 | return ((mng_datap)hHandle)->fProcessmend;
|
---|
894 | }
|
---|
895 | #endif /* MNG_SUPPORT_READ */
|
---|
896 |
|
---|
897 | /* ************************************************************************** */
|
---|
898 |
|
---|
899 | #ifdef MNG_SUPPORT_READ
|
---|
900 | mng_processunknown MNG_DECL mng_getcb_processunknown (mng_handle hHandle)
|
---|
901 | {
|
---|
902 | #ifdef MNG_SUPPORT_TRACE
|
---|
903 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSUNKNOWN, MNG_LC_START)
|
---|
904 | #endif
|
---|
905 |
|
---|
906 | MNG_VALIDHANDLEX (hHandle)
|
---|
907 |
|
---|
908 | #ifdef MNG_SUPPORT_TRACE
|
---|
909 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSUNKNOWN, MNG_LC_END)
|
---|
910 | #endif
|
---|
911 |
|
---|
912 | return ((mng_datap)hHandle)->fProcessunknown;
|
---|
913 | }
|
---|
914 | #endif /* MNG_SUPPORT_READ */
|
---|
915 |
|
---|
916 | /* ************************************************************************** */
|
---|
917 |
|
---|
918 | #ifdef MNG_SUPPORT_READ
|
---|
919 | mng_processterm MNG_DECL mng_getcb_processterm (mng_handle hHandle)
|
---|
920 | {
|
---|
921 | #ifdef MNG_SUPPORT_TRACE
|
---|
922 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSTERM, MNG_LC_START)
|
---|
923 | #endif
|
---|
924 |
|
---|
925 | MNG_VALIDHANDLEX (hHandle)
|
---|
926 |
|
---|
927 | #ifdef MNG_SUPPORT_TRACE
|
---|
928 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSTERM, MNG_LC_END)
|
---|
929 | #endif
|
---|
930 |
|
---|
931 | return ((mng_datap)hHandle)->fProcessterm;
|
---|
932 | }
|
---|
933 | #endif /* MNG_SUPPORT_READ */
|
---|
934 |
|
---|
935 | /* ************************************************************************** */
|
---|
936 |
|
---|
937 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
938 | mng_getcanvasline MNG_DECL mng_getcb_getcanvasline (mng_handle hHandle)
|
---|
939 | {
|
---|
940 | #ifdef MNG_SUPPORT_TRACE
|
---|
941 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_GETCANVASLINE, MNG_LC_START)
|
---|
942 | #endif
|
---|
943 |
|
---|
944 | MNG_VALIDHANDLEX (hHandle)
|
---|
945 |
|
---|
946 | #ifdef MNG_SUPPORT_TRACE
|
---|
947 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_GETCANVASLINE, MNG_LC_END)
|
---|
948 | #endif
|
---|
949 |
|
---|
950 | return ((mng_datap)hHandle)->fGetcanvasline;
|
---|
951 | }
|
---|
952 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
953 |
|
---|
954 | /* ************************************************************************** */
|
---|
955 |
|
---|
956 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
957 | mng_getbkgdline MNG_DECL mng_getcb_getbkgdline (mng_handle hHandle)
|
---|
958 | {
|
---|
959 | #ifdef MNG_SUPPORT_TRACE
|
---|
960 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_GETBKGDLINE, MNG_LC_START)
|
---|
961 | #endif
|
---|
962 |
|
---|
963 | MNG_VALIDHANDLEX (hHandle)
|
---|
964 |
|
---|
965 | #ifdef MNG_SUPPORT_TRACE
|
---|
966 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_GETBKGDLINE, MNG_LC_END)
|
---|
967 | #endif
|
---|
968 |
|
---|
969 | return ((mng_datap)hHandle)->fGetbkgdline;
|
---|
970 | }
|
---|
971 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
972 |
|
---|
973 | /* ************************************************************************** */
|
---|
974 |
|
---|
975 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
976 | mng_getalphaline MNG_DECL mng_getcb_getalphaline (mng_handle hHandle)
|
---|
977 | {
|
---|
978 | #ifdef MNG_SUPPORT_TRACE
|
---|
979 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_GETALPHALINE, MNG_LC_START)
|
---|
980 | #endif
|
---|
981 |
|
---|
982 | MNG_VALIDHANDLEX (hHandle)
|
---|
983 |
|
---|
984 | #ifdef MNG_SUPPORT_TRACE
|
---|
985 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_GETALPHALINE, MNG_LC_END)
|
---|
986 | #endif
|
---|
987 |
|
---|
988 | return ((mng_datap)hHandle)->fGetalphaline;
|
---|
989 | }
|
---|
990 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
991 |
|
---|
992 | /* ************************************************************************** */
|
---|
993 |
|
---|
994 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
995 | mng_refresh MNG_DECL mng_getcb_refresh (mng_handle hHandle)
|
---|
996 | {
|
---|
997 | #ifdef MNG_SUPPORT_TRACE
|
---|
998 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_REFRESH, MNG_LC_START)
|
---|
999 | #endif
|
---|
1000 |
|
---|
1001 | MNG_VALIDHANDLEX (hHandle)
|
---|
1002 |
|
---|
1003 | #ifdef MNG_SUPPORT_TRACE
|
---|
1004 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_REFRESH, MNG_LC_END)
|
---|
1005 | #endif
|
---|
1006 |
|
---|
1007 | return ((mng_datap)hHandle)->fRefresh;
|
---|
1008 | }
|
---|
1009 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
1010 |
|
---|
1011 | /* ************************************************************************** */
|
---|
1012 |
|
---|
1013 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
1014 | mng_gettickcount MNG_DECL mng_getcb_gettickcount (mng_handle hHandle)
|
---|
1015 | {
|
---|
1016 | #ifdef MNG_SUPPORT_TRACE
|
---|
1017 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_GETTICKCOUNT, MNG_LC_START)
|
---|
1018 | #endif
|
---|
1019 |
|
---|
1020 | MNG_VALIDHANDLEX (hHandle)
|
---|
1021 |
|
---|
1022 | #ifdef MNG_SUPPORT_TRACE
|
---|
1023 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_GETTICKCOUNT, MNG_LC_END)
|
---|
1024 | #endif
|
---|
1025 |
|
---|
1026 | return ((mng_datap)hHandle)->fGettickcount;
|
---|
1027 | }
|
---|
1028 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
1029 |
|
---|
1030 | /* ************************************************************************** */
|
---|
1031 |
|
---|
1032 | #ifdef MNG_SUPPORT_DISPLAY
|
---|
1033 | mng_settimer MNG_DECL mng_getcb_settimer (mng_handle hHandle)
|
---|
1034 | {
|
---|
1035 | #ifdef MNG_SUPPORT_TRACE
|
---|
1036 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_SETTIMER, MNG_LC_START)
|
---|
1037 | #endif
|
---|
1038 |
|
---|
1039 | MNG_VALIDHANDLEX (hHandle)
|
---|
1040 |
|
---|
1041 | #ifdef MNG_SUPPORT_TRACE
|
---|
1042 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_SETTIMER, MNG_LC_END)
|
---|
1043 | #endif
|
---|
1044 |
|
---|
1045 | return ((mng_datap)hHandle)->fSettimer;
|
---|
1046 | }
|
---|
1047 | #endif /* MNG_SUPPORT_DISPLAY */
|
---|
1048 |
|
---|
1049 | /* ************************************************************************** */
|
---|
1050 |
|
---|
1051 | #if defined(MNG_SUPPORT_DISPLAY) && defined(MNG_APP_CMS)
|
---|
1052 | mng_processgamma MNG_DECL mng_getcb_processgamma (mng_handle hHandle)
|
---|
1053 | {
|
---|
1054 | #ifdef MNG_SUPPORT_TRACE
|
---|
1055 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSGAMMA, MNG_LC_START)
|
---|
1056 | #endif
|
---|
1057 |
|
---|
1058 | MNG_VALIDHANDLEX (hHandle)
|
---|
1059 |
|
---|
1060 | #ifdef MNG_SUPPORT_TRACE
|
---|
1061 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSGAMMA, MNG_LC_END)
|
---|
1062 | #endif
|
---|
1063 |
|
---|
1064 | return ((mng_datap)hHandle)->fProcessgamma;
|
---|
1065 | }
|
---|
1066 | #endif /* MNG_SUPPORT_DISPLAY && MNG_APP_CMS */
|
---|
1067 |
|
---|
1068 | /* ************************************************************************** */
|
---|
1069 |
|
---|
1070 | #if defined(MNG_SUPPORT_DISPLAY) && defined(MNG_APP_CMS)
|
---|
1071 | mng_processchroma MNG_DECL mng_getcb_processchroma (mng_handle hHandle)
|
---|
1072 | {
|
---|
1073 | #ifdef MNG_SUPPORT_TRACE
|
---|
1074 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSCHROMA, MNG_LC_START)
|
---|
1075 | #endif
|
---|
1076 |
|
---|
1077 | MNG_VALIDHANDLEX (hHandle)
|
---|
1078 |
|
---|
1079 | #ifdef MNG_SUPPORT_TRACE
|
---|
1080 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSCHROMA, MNG_LC_END)
|
---|
1081 | #endif
|
---|
1082 |
|
---|
1083 | return ((mng_datap)hHandle)->fProcesschroma;
|
---|
1084 | }
|
---|
1085 | #endif /* MNG_SUPPORT_DISPLAY && MNG_APP_CMS */
|
---|
1086 |
|
---|
1087 | /* ************************************************************************** */
|
---|
1088 |
|
---|
1089 | #if defined(MNG_SUPPORT_DISPLAY) && defined(MNG_APP_CMS)
|
---|
1090 | mng_processsrgb MNG_DECL mng_getcb_processsrgb (mng_handle hHandle)
|
---|
1091 | {
|
---|
1092 | #ifdef MNG_SUPPORT_TRACE
|
---|
1093 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSSRGB, MNG_LC_START)
|
---|
1094 | #endif
|
---|
1095 |
|
---|
1096 | MNG_VALIDHANDLEX (hHandle)
|
---|
1097 |
|
---|
1098 | #ifdef MNG_SUPPORT_TRACE
|
---|
1099 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSSRGB, MNG_LC_END)
|
---|
1100 | #endif
|
---|
1101 |
|
---|
1102 | return ((mng_datap)hHandle)->fProcesssrgb;
|
---|
1103 | }
|
---|
1104 | #endif /* MNG_SUPPORT_DISPLAY && MNG_APP_CMS */
|
---|
1105 |
|
---|
1106 | /* ************************************************************************** */
|
---|
1107 |
|
---|
1108 | #if defined(MNG_SUPPORT_DISPLAY) && defined(MNG_APP_CMS)
|
---|
1109 | mng_processiccp MNG_DECL mng_getcb_processiccp (mng_handle hHandle)
|
---|
1110 | {
|
---|
1111 | #ifdef MNG_SUPPORT_TRACE
|
---|
1112 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSICCP, MNG_LC_START)
|
---|
1113 | #endif
|
---|
1114 |
|
---|
1115 | MNG_VALIDHANDLEX (hHandle)
|
---|
1116 |
|
---|
1117 | #ifdef MNG_SUPPORT_TRACE
|
---|
1118 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSICCP, MNG_LC_END)
|
---|
1119 | #endif
|
---|
1120 |
|
---|
1121 | return ((mng_datap)hHandle)->fProcessiccp;
|
---|
1122 | }
|
---|
1123 | #endif /* MNG_SUPPORT_DISPLAY && MNG_APP_CMS */
|
---|
1124 |
|
---|
1125 | /* ************************************************************************** */
|
---|
1126 |
|
---|
1127 | #if defined(MNG_SUPPORT_DISPLAY) && defined(MNG_APP_CMS)
|
---|
1128 | mng_processarow MNG_DECL mng_getcb_processarow (mng_handle hHandle)
|
---|
1129 | {
|
---|
1130 | #ifdef MNG_SUPPORT_TRACE
|
---|
1131 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSAROW, MNG_LC_START)
|
---|
1132 | #endif
|
---|
1133 |
|
---|
1134 | MNG_VALIDHANDLEX (hHandle)
|
---|
1135 |
|
---|
1136 | #ifdef MNG_SUPPORT_TRACE
|
---|
1137 | MNG_TRACEX (((mng_datap)hHandle), MNG_FN_GETCB_PROCESSAROW, MNG_LC_END)
|
---|
1138 | #endif
|
---|
1139 |
|
---|
1140 | return ((mng_datap)hHandle)->fProcessarow;
|
---|
1141 | }
|
---|
1142 | #endif /* MNG_SUPPORT_DISPLAY && MNG_APP_CMS */
|
---|
1143 |
|
---|
1144 | /* ************************************************************************** */
|
---|
1145 | /* * end of file * */
|
---|
1146 | /* ************************************************************************** */
|
---|
1147 |
|
---|