2 Copyright © 1995-2007, 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
, CollectionChunks
,
18 AROS_LHA(struct IFFHandle
*, iff
, A0
),
19 AROS_LHA(const LONG
*, propArray
, A1
),
20 AROS_LHA(LONG
, numPairs
, D0
),
23 struct Library
*, IFFParseBase
, 24, IFFParse
)
26 Does multiple CollectionChunk() calls on the supplied list.
27 An easy way to install several collction chunks.
30 iff - pointer to an IFFHandle struct.
31 propArray - pointer to an array of longword chunk types and identifiers.
32 numPairs - number of type/id pairs in the propArray.
35 error - 0 if successfull, IFFERR_#? otherwise.
48 *****************************************************************************/
55 DEBUG_COLLECTIONCHUNKS(dprintf("CollectionChunks: iff 0x%lx array 0x%lx num %d\n",
56 iff
, propArray
, numPairs
));
60 LONG
* lptr
= propArray
;
61 bug ("CollectionChunks (iff=%p, [\n", iff
);
62 for (count
= 0; count
< numPairs
; count
++)
64 bug (" {%c%c%c%c,%c%c%c%c}, ",
74 for (count
= 0; count
< numPairs
; count
++ )
76 if ((err
= CollectionChunk(iff
, propArray
[0], propArray
[1])))
81 ReturnInt("CollectionChunks",LONG
,0L);
83 } /* CollectionChunks */