New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / workbench / libs / iffparse / stopchunk.c
blob08b5cf7c577e7d8ef0e31a952492911c84d754ee
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(LONG, StopChunk,
15 /* SYNOPSIS */
16 AROS_LHA(struct IFFHandle *, iff, A0),
17 AROS_LHA(LONG , type, D0),
18 AROS_LHA(LONG , id, D1),
20 /* LOCATION */
21 struct Library *, IFFParseBase, 21, IFFParse)
23 /* FUNCTION
24 Inserts an entry handler for the given type and id, that will cause the parser
25 to stop when such a chunk is entered.
27 INPUTS
28 iff - Pointer to IFFHandle struct. (does not need to be open).
29 type - IFF chunk type declarator for chunk to stop at.
30 id - IFF chunk id identifier for chunk to stop at.
32 RESULT
33 error - 0 if successfull, IFFERR_#? otherwise.
35 NOTES
37 EXAMPLE
39 BUGS
41 SEE ALSO
42 StopChunks(), ParseIFF()
44 INTERNALS
46 *****************************************************************************/
48 AROS_LIBFUNC_INIT
49 AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)
51 DEBUG_STOPCHUNK(dprintf("StopChunk: iff 0x%lx type 0x%08lx (%c%c%c%c) id 0x%08lx (%c%c%c%c)\n",
52 iff, type, dmkid(type), id, dmkid(id)));
54 /* Install an EntryHandler */
55 return
57 EntryHandler
59 iff,
60 type,
61 id,
62 IFFSLI_TOP,
63 &(IPB(IFFParseBase)->stophook),
64 iff
68 AROS_LIBFUNC_EXIT
69 } /* StopChunk */