2 Copyright © 1995-2004, 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 *****************************************************************************/
49 AROS_LIBBASE_EXT_DECL(struct Library
*,IFFParseBase
)
51 DEBUG_INITIFF(dprintf("InitIFF: iff %p flags 0x%lx streamHook %p\n",
52 iff
, flags
, streamHook
));
56 /* Change the flags IFF flags to the supplied ones */
57 iff
->iff_Flags
|= flags
;
59 /* Put the pointer to the streamHook into the iffhandle */
60 GetIntIH(iff
)->iff_StreamHandler
= streamHook
;
62 DEBUG_INITIFF(dprintf("InitIFF: donen"));