home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROSdev.lha / AROS / workbench / libs / iffparse / propchunk.c < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-03  |  1.5 KB  |  75 lines

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: propchunk.c,v 1.2 1997/02/03 18:38:02 digulla Exp $
  4.  
  5.     Desc:
  6.     Lang: english
  7. */
  8. #include "iffparse_intern.h"
  9.  
  10. /*****************************************************************************
  11.  
  12.     NAME */
  13. #include <proto/iffparse.h>
  14.  
  15.     AROS_LH3(LONG, PropChunk,
  16.  
  17. /*  SYNOPSIS */
  18.     AROS_LHA(struct IFFHandle *, iff, A0),
  19.     AROS_LHA(LONG              , type, D0),
  20.     AROS_LHA(LONG              , id, D1),
  21.  
  22. /*  LOCATION */
  23.     struct Library *, IFFParseBase, 19, IFFParse)
  24.  
  25. /*  FUNCTION
  26.     Installs an entry handler for chunks with the given type and id.
  27.     When such  chunk is encoutered, the entry handler will insert
  28.     a StoredProperty in the proper context.
  29.     A stored property chunk returned by FindProp() will be the valid property
  30.     for the current context.
  31.  
  32.     INPUTS
  33.     iff    - pointer to IFFHandle struct.
  34.     type  -  type code for chunk to declare.
  35.     id    -  identifier for chunk to declare.
  36.  
  37.     RESULT
  38.     error  - 0 if successfull, IFFERR_#? otherwise.
  39.  
  40.     NOTES
  41.  
  42.     EXAMPLE
  43.  
  44.     BUGS
  45.  
  46.     SEE ALSO
  47.     PropChunks(), FindProp(), CollectionChunk()
  48.  
  49.     INTERNALS
  50.  
  51.     HISTORY
  52.   27-11-96    digulla automatically created from
  53.       iffparse_lib.fd and clib/iffparse_protos.h
  54.  
  55. *****************************************************************************/
  56. {
  57.     AROS_LIBFUNC_INIT
  58.     AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)
  59.  
  60.     return
  61.     (
  62.     EntryHandler
  63.     (
  64.         iff,
  65.         type,
  66.         id,
  67.         IFFSLI_PROP,
  68.         &IPB(IFFParseBase)->prophook,
  69.         iff
  70.     )
  71.     );
  72.  
  73.     AROS_LIBFUNC_EXIT
  74. } /* PropChunk */
  75.