1#ifndef __FILEIO_H__
2#define __FILEIO_H__
3
4/** @file fileio.h - does standard C I/O
5
6  Implementation of a FILE* based TidyInputSource and
7  TidyOutputSink.
8
9  (c) 1998-2005 (W3C) MIT, ERCIM, Keio University
10  See tidy.h for the copyright notice.
11
12  CVS Info:
13    $Author: jkahn $
14    $Date: 2006/06/20 21:17:30 $
15    $Revision: 1.2 $
16*/
17
18#include "buffio.h"
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23/** Allocate and initialize file input source */
24void TIDY_CALL initFileSource( TidyInputSource* source, FILE* fp );
25
26/** Free file input source */
27void TIDY_CALL freeFileSource( TidyInputSource* source, Bool closeIt );
28
29/** Initialize file output sink */
30void TIDY_CALL initFileSink( TidyOutputSink* sink, FILE* fp );
31
32/* Needed for internal declarations */
33void TIDY_CALL filesink_putByte( ulong sinkData, byte bv );
34
35#ifdef __cplusplus
36}
37#endif
38#endif /* __FILEIO_H__ */
39