home *** CD-ROM | disk | FTP | other *** search
- /*
- (C) 1995-96 AROS - The Amiga Replacement OS
- $Id: propchunk.c,v 1.2 1997/02/03 18:38:02 digulla Exp $
-
- Desc:
- Lang: english
- */
- #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 successfull, IFFERR_#? otherwise.
-
- NOTES
-
- EXAMPLE
-
- BUGS
-
- SEE ALSO
- PropChunks(), FindProp(), CollectionChunk()
-
- INTERNALS
-
- HISTORY
- 27-11-96 digulla automatically created from
- iffparse_lib.fd and clib/iffparse_protos.h
-
- *****************************************************************************/
- {
- AROS_LIBFUNC_INIT
- AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)
-
- return
- (
- EntryHandler
- (
- iff,
- type,
- id,
- IFFSLI_PROP,
- &IPB(IFFParseBase)->prophook,
- iff
- )
- );
-
- AROS_LIBFUNC_EXIT
- } /* PropChunk */
-