2 Copyright © 1995-2016, The AROS Development Team. All rights reserved.
7 #include <aros/debug.h>
8 #include "iffparse_intern.h"
10 /*****************************************************************************
13 #include <proto/iffparse.h>
15 AROS_LH3(LONG
, CollectionChunk
,
18 AROS_LHA(struct IFFHandle
*, iff
, A0
),
19 AROS_LHA(LONG
, type
, D0
),
20 AROS_LHA(LONG
, id
, D1
),
23 struct Library
*, IFFParseBase
, 23, IFFParse
)
26 Installs an entry handler with the given type and id, so that
27 chunks encountered with the same type and id will be stored.
28 This is quite like PropChunk(), but CollectionChunk() will
29 store the contents of multiple chunks with the same type and id.
30 To retrieve the stored collection of chunks one uses FindCollection().
31 Remember: the collection is only valid inside the current property scope.
34 iff - Pointer to IFFHandle struct. (does not need to be open).
35 type - IFF chunk type declarator for chunk to collect.
36 id - IFF chunk id identifier for chunk to collect.
39 error - 0 if successful. IFFERR_#? otherwise.
48 CollectionChunks(), FindCollection(), PropChunk()
52 *****************************************************************************/
56 DEBUG_COLLECTIONCHUNK(dprintf("CollectionChunk: iff 0x%lx type 0x%08lx (%c%c%c%c) id 0x%08lx (%c%c%c%c)\n",
57 iff
, type
, dmkid(type
), id
, dmkid(id
)));
67 &(IPB(IFFParseBase
)->collectionhook
),
73 } /* CollectionChunk */