New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / workbench / libs / iffparse / initiffasclip.c
blob069b62551ca2ff819135feb7ad8dba47c7b484b4
1 /*
2 Copyright © 1995-2004, 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
47 AROS_LIBBASE_EXT_DECL(struct Library *,IFFParseBase)
49 DEBUG_INITIFFAS(dprintf("InitIFFasClip: entry\n"));
51 /* Initialize the DOS stream handler hook */
52 /* Clipboard streams are ALWAYS random seekable */
53 InitIFF(iff, IFFF_RSEEK, &(IPB(IFFParseBase)->cliphook));
55 DEBUG_INITIFFAS(dprintf("InitIFFasClip: done\n"));
57 AROS_LIBFUNC_EXIT
58 } /* InitIFFasClip */