2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
6 #include "iffparse_intern.h"
8 /*****************************************************************************
11 #include <proto/iffparse.h>
13 AROS_LH3(struct StoredProperty
*, FindProp
,
16 AROS_LHA(struct IFFHandle
*, iff
, A0
),
17 AROS_LHA(LONG
, type
, D0
),
18 AROS_LHA(LONG
, id
, D1
),
21 struct Library
*, IFFParseBase
, 26, IFFParse
)
24 Searches for a StoredProperty that is valid in the given context.
25 Property chunks are automatically stored by ParseIFF() when pre-declared
26 by PropChunk() or PropChunks(). The returned storedproperty contains
27 a pointer to the data in the chunk.
30 iff - a pointer to a an IFFHandle struct.
31 type - type code of property to search for.
32 id - id code of property to search for.
35 sp - pointer to a storedproperty if found, NULL if none are found.
45 PropChunk(), PropChunks()
49 *****************************************************************************/
53 struct LocalContextItem
*lci
;
55 DEBUG_FINDPROP(dprintf("FindProp: 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 if (!(lci
= FindLocalItem(
64 DEBUG_FINDPROP(dprintf("FindProp: reuturn NULL\n"));
68 /* The userdata of the found LCI is the StoredProperty */
70 return ( LocalItemData(lci
) );