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

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: initiff.c,v 1.1 1997/02/03 16:44:25 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(void, InitIFF,
  16.  
  17. /*  SYNOPSIS */
  18.     AROS_LHA(struct IFFHandle *, iff, A0),
  19.     AROS_LHA(LONG              , flags, D0),
  20.     AROS_LHA(struct Hook      *, streamHook, A1),
  21.  
  22. /*  LOCATION */
  23.     struct Library *, IFFParseBase, 38, IFFParse)
  24.  
  25. /*  FUNCTION
  26.     Initializes an IFFHandle with a custom stream handler and
  27.     flags describing seekability of the stream.
  28.  
  29.     INPUTS
  30.     iff        - pointer to IFFHandle struct.
  31.     flags         -    stream I/O flags for the IFFHandle.
  32.     streamHook  - pointer to a Hook structure initialized with the streamhandler
  33.               to be called.
  34.  
  35.     RESULT
  36.  
  37.     NOTES
  38.  
  39.     EXAMPLE
  40.  
  41.     BUGS
  42.  
  43.     SEE ALSO
  44.     utility/hooks.h
  45.  
  46.     INTERNALS
  47.  
  48.     HISTORY
  49.   27-11-96    digulla automatically created from
  50.       iffparse_lib.fd and clib/iffparse_protos.h
  51.  
  52. *****************************************************************************/
  53. {
  54.     AROS_LIBFUNC_INIT
  55.     AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)
  56.  
  57.     /* Change the flags IFF flags to the supplied ones */
  58.     iff->iff_Flags   |=   flags;
  59.  
  60.     /* Put the pointer to the streamHook into the iffhandle */
  61.     GetIntIH(iff)->iff_StreamHandler  = streamHook;
  62.  
  63.     return;
  64.  
  65.     AROS_LIBFUNC_EXIT
  66. } /* InitIFF */
  67.