Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / iffparse / initiffasclip.c
blob54951da7188f81641657f7df4f04dd589eaa3ad2
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include "iffparse_intern.h"
8 /*****************************************************************************
10 NAME */
11 #include <proto/iffparse.h>
13 AROS_LH1(void, InitIFFasClip,
15 /* SYNOPSIS */
16 AROS_LHA(struct IFFHandle *, iff, A0),
18 /* LOCATION */
19 struct Library *, IFFParseBase, 40, IFFParse)
21 /* FUNCTION
22 Initializes the given IFFHandle to be a clipboard stream. It installs a
23 "custom" stream handler (via InitIFF) to handle clipboard streams.
24 The iff_Stream field of the iffhandle will still need
25 to be initializes with a ClipboardHandle struct returned from
26 OpenClipboard().
28 INPUTS
29 iff - pointer to an IFFHandle struct.
31 RESULT
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
40 OpenClipboard()
42 INTERNALS
44 *****************************************************************************/
46 AROS_LIBFUNC_INIT
48 DEBUG_INITIFFAS(dprintf("InitIFFasClip: entry\n"));
50 /* Initialize the DOS stream handler hook */
51 /* Clipboard streams are ALWAYS random seekable */
52 InitIFF(iff, IFFF_RSEEK, &(IPB(IFFParseBase)->cliphook));
54 DEBUG_INITIFFAS(dprintf("InitIFFasClip: done\n"));
56 AROS_LIBFUNC_EXIT
57 } /* InitIFFasClip */