2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
6 #include "iffparse_intern.h"
8 /*****************************************************************************
11 #include <proto/iffparse.h>
13 AROS_LH1(void, InitIFFasDOS
,
16 AROS_LHA(struct IFFHandle
*, iff
, A0
),
19 struct Library
*, IFFParseBase
, 39, IFFParse
)
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).
34 iff - pointer to an IFFHandle struct.
48 *****************************************************************************/
52 DEBUG_INITIFFAS(dprintf("InitIFFasDOS: entry\n"));
54 /* Initialize the DOS stream handler hook */
55 InitIFF(iff
, IFFF_RSEEK
, &IPB(IFFParseBase
)->doshook
);
57 DEBUG_INITIFFAS(dprintf("InitIFFasDOS: done\n"));