fileio.h   [plain text]


#ifndef __FILEIO_H__
#define __FILEIO_H__

/** @file fileio.h - does standard C I/O

  Implementation of a FILE* based TidyInputSource and 
  TidyOutputSink.

  (c) 1998-2005 (W3C) MIT, ERCIM, Keio University
  See tidy.h for the copyright notice.

  CVS Info:
    $Author: jkahn $ 
    $Date: 2006/06/20 21:17:30 $ 
    $Revision: 1.2 $ 
*/

#include "buffio.h"
#ifdef __cplusplus
extern "C" {
#endif

/** Allocate and initialize file input source */
void TIDY_CALL initFileSource( TidyInputSource* source, FILE* fp );

/** Free file input source */
void TIDY_CALL freeFileSource( TidyInputSource* source, Bool closeIt );

/** Initialize file output sink */
void TIDY_CALL initFileSink( TidyOutputSink* sink, FILE* fp );

/* Needed for internal declarations */
void TIDY_CALL filesink_putByte( ulong sinkData, byte bv );

#ifdef __cplusplus
}
#endif
#endif /* __FILEIO_H__ */