start service tasks separately in-case platforms need to perform additional set-up...
[AROS.git] / workbench / libs / iffparse / propchunk.c
blob5b59c28b3446758663a9805bdc5d6dfe62af4d6b
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #define DEBUG 0
7 #include <aros/debug.h>
8 #include "iffparse_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <proto/iffparse.h>
15 AROS_LH3(LONG, PropChunk,
17 /* SYNOPSIS */
18 AROS_LHA(struct IFFHandle *, iff, A0),
19 AROS_LHA(LONG , type, D0),
20 AROS_LHA(LONG , id, D1),
22 /* LOCATION */
23 struct Library *, IFFParseBase, 19, IFFParse)
25 /* FUNCTION
26 Installs an entry handler for chunks with the given type and id.
27 When such chunk is encoutered, the entry handler will insert
28 a StoredProperty in the proper context.
29 A stored property chunk returned by FindProp() will be the valid property
30 for the current context.
32 INPUTS
33 iff - pointer to IFFHandle struct.
34 type - type code for chunk to declare.
35 id - identifier for chunk to declare.
37 RESULT
38 error - 0 if successfull, IFFERR_#? otherwise.
40 NOTES
42 EXAMPLE
44 BUGS
46 SEE ALSO
47 PropChunks(), FindProp(), CollectionChunk()
49 INTERNALS
51 *****************************************************************************/
53 AROS_LIBFUNC_INIT
55 DEBUG_PROPCHUNK(dprintf("PropChunk: iff 0x%lx type 0x%08lx (%c%c%c%c) id 0x%08lx (%c%c%c%c)\n",
56 iff, type, dmkid(type), id, dmkid(id)));
58 ReturnInt
60 "PropChunk",
61 LONG,
62 EntryHandler
64 iff,
65 type,
66 id,
67 IFFSLI_TOP,
68 &(IPB(IFFParseBase)->prophook),
69 iff
73 AROS_LIBFUNC_EXIT
74 } /* PropChunk */