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

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: initiffasdos.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_LH1(void, InitIFFasDOS,
  16.  
  17. /*  SYNOPSIS */
  18.     AROS_LHA(struct IFFHandle *, iff, A0),
  19.  
  20. /*  LOCATION */
  21.     struct Library *, IFFParseBase, 39, IFFParse)
  22.  
  23. /*  FUNCTION
  24.     Initializes the given IFFHandle to be a DOS stream. It installs a
  25.     "custom" stream handler (via InitIFF) to handle DOS streams.
  26.     The iff_Stream field of the iffhandle will still need
  27.     to be initializes with a filehandle struct as returned from
  28.     dos.library/Open(). The iff_Flags may be changed to
  29.     change the seekability of the stream after this function is called,
  30.     but before OpenIFF() is called. Seekability for dos files
  31.     default to IFFF_RSEEK (random seekable).
  32.  
  33.  
  34.  
  35.     INPUTS
  36.     iff  - pointer to an IFFHandle struct.
  37.  
  38.     RESULT
  39.  
  40.     NOTES
  41.  
  42.     EXAMPLE
  43.  
  44.     BUGS
  45.  
  46.     SEE ALSO
  47.  
  48.     INTERNALS
  49.  
  50.     HISTORY
  51.   27-11-96    digulla automatically created from
  52.       iffparse_lib.fd and clib/iffparse_protos.h
  53.  
  54. *****************************************************************************/
  55. {
  56.     AROS_LIBFUNC_INIT
  57.     AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)
  58.  
  59.     /* Initialize the DOS stream handler hook */
  60.     InitIFF(iff, IFFF_RSEEK, &IPB(IFFParseBase)->doshook);
  61.  
  62.     AROS_LIBFUNC_EXIT
  63. } /* InitIFFasDOS */
  64.