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

  1. /*
  2.     (C) 1995-96 AROS - The Amiga Replacement OS
  3.     $Id: initiffasclip.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, InitIFFasClip,
  16.  
  17. /*  SYNOPSIS */
  18.     AROS_LHA(struct IFFHandle *, iff, A0),
  19.  
  20. /*  LOCATION */
  21.     struct Library *, IFFParseBase, 40, IFFParse)
  22.  
  23. /*  FUNCTION
  24.     Initializes the given IFFHandle to be a clipboard stream. It installs a
  25.     "custom" stream handler (via InitIFF) to handle clipboard streams.
  26.     The iff_Stream field of the iffhandle will still need
  27.     to be initializes with a ClipboardHandle struct returned from
  28.     OpenClipboard().
  29.  
  30.     INPUTS
  31.     iff  - pointer to an IFFHandle struct.
  32.  
  33.     RESULT
  34.  
  35.     NOTES
  36.  
  37.     EXAMPLE
  38.  
  39.     BUGS
  40.  
  41.     SEE ALSO
  42.     OpenClipboard()
  43.  
  44.     INTERNALS
  45.  
  46.     HISTORY
  47.   27-11-96    digulla automatically created from
  48.       iffparse_lib.fd and clib/iffparse_protos.h
  49.  
  50. *****************************************************************************/
  51. {
  52.     AROS_LIBFUNC_INIT
  53.     AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)
  54.  
  55.     /* Initialize the DOS stream handler hook */
  56.     /* Clipboard streams are ALWAYS random seekable */
  57.     InitIFF(iff, IFFF_RSEEK, &(IPB(IFFParseBase)->cliphook));
  58.  
  59.     AROS_LIBFUNC_EXIT
  60. } /* InitIFFasClip */
  61.