1
0
mirror of https://github.com/deadw00d/AROS.git synced 2025-12-08 22:46:36 +00:00
Files
AROS-v0/workbench/libs/iffparse/propchunk.c
Matthias Rustler 6b5a534ce3 workbench: detabbed
2021-05-02 13:55:14 +02:00

74 lines
1.7 KiB
C

/*
Copyright (C) 1995-2016, The AROS Development Team. All rights reserved.
*/
#define DEBUG 0
#include <aros/debug.h>
#include "iffparse_intern.h"
/*****************************************************************************
NAME */
#include <proto/iffparse.h>
AROS_LH3(LONG, PropChunk,
/* SYNOPSIS */
AROS_LHA(struct IFFHandle *, iff, A0),
AROS_LHA(LONG , type, D0),
AROS_LHA(LONG , id, D1),
/* LOCATION */
struct Library *, IFFParseBase, 19, IFFParse)
/* FUNCTION
Installs an entry handler for chunks with the given type and id.
When such chunk is encoutered, the entry handler will insert
a StoredProperty in the proper context.
A stored property chunk returned by FindProp() will be the valid property
for the current context.
INPUTS
iff - pointer to IFFHandle struct.
type - type code for chunk to declare.
id - identifier for chunk to declare.
RESULT
error - 0 if successful, IFFERR_#? otherwise.
NOTES
EXAMPLE
BUGS
SEE ALSO
PropChunks(), FindProp(), CollectionChunk()
INTERNALS
*****************************************************************************/
{
AROS_LIBFUNC_INIT
DEBUG_PROPCHUNK(dprintf("PropChunk: iff 0x%lx type 0x%08lx (%c%c%c%c) id 0x%08lx (%c%c%c%c)\n",
iff, type, dmkid(type), id, dmkid(id)));
ReturnInt
(
"PropChunk",
LONG,
EntryHandler
(
iff,
type,
id,
IFFSLI_TOP,
&(IPB(IFFParseBase)->prophook),
iff
)
);
AROS_LIBFUNC_EXIT
} /* PropChunk */