mirror of
https://github.com/deadw00d/AROS.git
synced 2025-12-08 22:46:36 +00:00
65 lines
1.4 KiB
C
65 lines
1.4 KiB
C
/*
|
|
Copyright (C) 1995-2016, The AROS Development Team. All rights reserved.
|
|
*/
|
|
|
|
#include "iffparse_intern.h"
|
|
|
|
/*****************************************************************************
|
|
|
|
NAME */
|
|
#include <proto/iffparse.h>
|
|
|
|
AROS_LH3(LONG, StopChunks,
|
|
|
|
/* SYNOPSIS */
|
|
AROS_LHA(struct IFFHandle *, iff, A0),
|
|
AROS_LHA(const LONG *, propArray, A1),
|
|
AROS_LHA(LONG , numPairs, D0),
|
|
|
|
/* LOCATION */
|
|
struct Library *, IFFParseBase, 22, IFFParse)
|
|
|
|
/* FUNCTION
|
|
Declares multiple stop chunks from th typ/id pairs supplied.
|
|
|
|
INPUTS
|
|
iff - pointer to an IFFHandle struct.
|
|
propArray - pointer to an array of longword chunk types and identifiers.
|
|
numPairs - number of type/id pairs in the propArray.
|
|
|
|
RESULT
|
|
error - 0 if successful, IFFERR_#? otherwise.
|
|
|
|
NOTES
|
|
|
|
EXAMPLE
|
|
|
|
BUGS
|
|
|
|
SEE ALSO
|
|
StopChunk()
|
|
|
|
INTERNALS
|
|
|
|
*****************************************************************************/
|
|
{
|
|
AROS_LIBFUNC_INIT
|
|
|
|
LONG count;
|
|
LONG err;
|
|
|
|
DEBUG_STOPCHUNKS(dprintf("StopChunks: iff 0x%lx array 0x%lx num %d\n",
|
|
iff, propArray, numPairs));
|
|
|
|
for (count = 0; count < numPairs; count ++ )
|
|
{
|
|
if ((err = StopChunk(iff, propArray[0], propArray[1])))
|
|
return (err);
|
|
propArray = &propArray[2];
|
|
}
|
|
|
|
return 0;
|
|
|
|
AROS_LIBFUNC_EXIT
|
|
} /* StopChunks */
|