New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / workbench / libs / iffparse / initiff.c
blob77e9c739be182bf04625e8e6f148d2275afeeb61
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_LH3(void, InitIFF,
15 /* SYNOPSIS */
16 AROS_LHA(struct IFFHandle *, iff, A0),
17 AROS_LHA(LONG , flags, D0),
18 AROS_LHA(struct Hook *, streamHook, A1),
20 /* LOCATION */
21 struct Library *, IFFParseBase, 38, IFFParse)
23 /* FUNCTION
24 Initializes an IFFHandle with a custom stream handler and
25 flags describing seekability of the stream.
27 INPUTS
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
31 to be called.
33 RESULT
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
42 utility/hooks.h
44 INTERNALS
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
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));
54 (void) IFFParseBase;
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"));
64 AROS_LIBFUNC_EXIT
65 } /* InitIFF */