New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / workbench / libs / iffparse / initiffasdos.c
blob55c9c404f482dbd2133c122dea7fef6394029e92
1 /*
2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "iffparse_intern.h"
8 /*****************************************************************************
10 NAME */
11 #include <proto/iffparse.h>
13 AROS_LH1(void, InitIFFasDOS,
15 /* SYNOPSIS */
16 AROS_LHA(struct IFFHandle *, iff, A0),
18 /* LOCATION */
19 struct Library *, IFFParseBase, 39, IFFParse)
21 /* FUNCTION
22 Initializes the given IFFHandle to be a DOS stream. It installs a
23 "custom" stream handler (via InitIFF) to handle DOS streams.
24 The iff_Stream field of the iffhandle will still need
25 to be initializes with a filehandle struct as returned from
26 dos.library/Open(). The iff_Flags may be changed to
27 change the seekability of the stream after this function is called,
28 but before OpenIFF() is called. Seekability for dos files
29 default to IFFF_RSEEK (random seekable).
33 INPUTS
34 iff - pointer to an IFFHandle struct.
36 RESULT
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 INTERNALS
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
51 AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)
53 DEBUG_INITIFFAS(dprintf("InitIFFasDOS: entry\n"));
55 /* Initialize the DOS stream handler hook */
56 InitIFF(iff, IFFF_RSEEK, &IPB(IFFParseBase)->doshook);
58 DEBUG_INITIFFAS(dprintf("InitIFFasDOS: done\n"));
60 AROS_LIBFUNC_EXIT
61 } /* InitIFFasDOS */