2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
6 #include "iffparse_intern.h"
8 /*****************************************************************************
11 #include <proto/iffparse.h>
13 AROS_LH3(void, InitIFF
,
16 AROS_LHA(struct IFFHandle
*, iff
, A0
),
17 AROS_LHA(LONG
, flags
, D0
),
18 AROS_LHA(struct Hook
*, streamHook
, A1
),
21 struct Library
*, IFFParseBase
, 38, IFFParse
)
24 Initializes an IFFHandle with a custom stream handler and
25 flags describing seekability of the stream.
28 iff - pointer to IFFHandle struct.
29 flags - stream I/O flags for the IFFHandle.
30 streamHook - pointer to a Hook structure initialized with the streamhandler
46 *****************************************************************************/
50 DEBUG_INITIFF(dprintf("InitIFF: iff %p flags 0x%lx streamHook %p\n",
51 iff
, flags
, streamHook
));
55 /* Change the flags IFF flags to the supplied ones */
56 iff
->iff_Flags
|= flags
;
58 /* Put the pointer to the streamHook into the iffhandle */
59 GetIntIH(iff
)->iff_StreamHandler
= streamHook
;
61 DEBUG_INITIFF(dprintf("InitIFF: donen"));