libcsem
0.2
|
00001 /* 00002 * $Id: csem__builder_8h_source.html,v 1.1 2013/04/22 20:16:22 hitoshi Exp $ 00003 * See Copyright for the status of this software. 00004 * uchida@w3.org 00005 */ 00006 #ifndef CSEM_BUILDER_H 00007 #define CSEM_BUILDER_H 00008 00009 #ifdef __cplusplus 00010 #define CSEM_NS_C_BEGIN extern "C" { 00011 #define CSEM_NS_C_END } 00012 #else 00013 #define CSEM_NS_C_BEGIN 00014 #define CSEM_NS_C_END 00015 #endif 00016 00017 CSEM_NS_C_BEGIN 00018 00019 #include "csem_tree.h" 00020 #include "csem_url.h" 00021 00025 typedef struct CSEM_Builder CSEM_Builder; 00031 CSEM_Error CSEM_Builder_Create(CSEM_Builder **builder); 00037 void CSEM_Builder_SetBaseURL(CSEM_Builder *builder, CSEM_Url *baseURL); 00044 CSEM_Error CSEM_Builder_Parse(CSEM_Builder *builder, int fd); 00053 CSEM_Error CSEM_Builder_ParseChunk(CSEM_Builder *builder, 00054 const char *chunk, int size, int terminate); 00060 CSEM_Error CSEM_Builder_GetDocument(CSEM_Builder *builder, CSEM_Document **doc); 00065 void CSEM_Builder_Dispose(CSEM_Builder *builder); 00066 00067 CSEM_NS_C_END 00068 00069 #endif /* CSEM_PARSER_H */