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-2006 (W3C) MIT, ERCIM, Keio University 10 See tidy.h for the copyright notice. 11 12 CVS Info: 13 $Author$ 14 $Date$ 15 $Revision$ 16*/ 17 18#include "buffio.h" 19#ifdef __cplusplus 20extern "C" { 21#endif 22 23/** Allocate and initialize file input source */ 24int TY_(initFileSource)( TidyInputSource* source, FILE* fp ); 25 26/** Free file input source */ 27void TY_(freeFileSource)( TidyInputSource* source, Bool closeIt ); 28 29/** Initialize file output sink */ 30void TY_(initFileSink)( TidyOutputSink* sink, FILE* fp ); 31 32/* Needed for internal declarations */ 33void TIDY_CALL TY_(filesink_putByte)( void* sinkData, byte bv ); 34 35#ifdef __cplusplus 36} 37#endif 38#endif /* __FILEIO_H__ */ 39