grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / iffparse / initiffasdos.c
blob9cdbad6490156356ce17f1b6d3ab21c3ce3e0d0a
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, InitIFFasDOS,
15 /* SYNOPSIS */
16 AROS_LHA(struct IFFHandle *, iff, A0),
18 /* LOCATION */
19 struct Library *, IFFParseBase, 39, IFFParse)
21 /* FUNCTION
22 Initializes the given IFFHandle to be a DOS stream. It installs a
23 "custom" stream handler (via InitIFF) to handle DOS streams.
24 The iff_Stream field of the iffhandle will still need
25 to be initializes with a filehandle struct as returned from
26 dos.library/Open(). The iff_Flags may be changed to
27 change the seekability of the stream after this function is called,
28 but before OpenIFF() is called. Seekability for dos files
29 default to IFFF_RSEEK (random seekable).
33 INPUTS
34 iff - pointer to an IFFHandle struct.
36 RESULT
38 NOTES
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 INTERNALS
48 *****************************************************************************/
50 AROS_LIBFUNC_INIT
52 DEBUG_INITIFFAS(dprintf("InitIFFasDOS: entry\n"));
54 /* Initialize the DOS stream handler hook */
55 InitIFF(iff, IFFF_RSEEK, &IPB(IFFParseBase)->doshook);
57 DEBUG_INITIFFAS(dprintf("InitIFFasDOS: done\n"));
59 AROS_LIBFUNC_EXIT
60 } /* InitIFFasDOS */