|
libcsem
0.2
|
Go to the source code of this file.
Defines | |
| #define | CSEM_NS_C_BEGIN |
| #define | CSEM_NS_C_END |
Typedefs | |
| typedef typedefCSEM_NS_C_BEGIN struct CSEM_Builder | CSEM_Builder |
| Data model builder. | |
Functions | |
| CSEM_Error | CSEM_Builder_Create (CSEM_Builder **builder) |
| Create new builder. | |
| void | CSEM_Builder_SetBaseURL (CSEM_Builder *builder, CSEM_Url *baseURL) |
| Set base URL. | |
| CSEM_Error | CSEM_Builder_Parse (CSEM_Builder *builder, int fd) |
| Parse the specified input stream and build a data model. | |
| CSEM_Error | CSEM_Builder_ParseChunk (CSEM_Builder *builder, const char *chunk, int size, int terminate) |
| Parse the specified chunk data and build a part of the data model. | |
| CSEM_Error | CSEM_Builder_GetDocument (CSEM_Builder *builder, CSEM_Document **doc) |
| Get the parsed result document. | |
| void | CSEM_Builder_Dispose (CSEM_Builder *builder) |
| Dispose the builder. | |
| #define CSEM_NS_C_BEGIN |
| #define CSEM_NS_C_END |
| typedef typedefCSEM_NS_C_BEGIN struct CSEM_Builder CSEM_Builder |
Data model builder.
| CSEM_Error CSEM_Builder_Create | ( | CSEM_Builder ** | builder | ) |
Create new builder.
| builder | [out]builder to be created |
| void CSEM_Builder_Dispose | ( | CSEM_Builder * | builder | ) |
Dispose the builder.
| builder | [in]builder to be freed |
| CSEM_Error CSEM_Builder_GetDocument | ( | CSEM_Builder * | builder, |
| CSEM_Document ** | doc | ||
| ) |
Get the parsed result document.
| builder | [in]builder |
| doc | [out]parsed result document |
| CSEM_Error CSEM_Builder_Parse | ( | CSEM_Builder * | builder, |
| int | fd | ||
| ) |
Parse the specified input stream and build a data model.
| builder | [in]builder |
| fd | [in]input stream |
| CSEM_Error CSEM_Builder_ParseChunk | ( | CSEM_Builder * | builder, |
| const char * | chunk, | ||
| int | size, | ||
| int | terminate | ||
| ) |
Parse the specified chunk data and build a part of the data model.
| builder | [in]builder |
| chunk | [in]chunk data |
| size | [in]size of the chunk |
| terminate | [in]set 1 if the chunk is final data to be parsed. Otherwise, set 0. |
| void CSEM_Builder_SetBaseURL | ( | CSEM_Builder * | builder, |
| CSEM_Url * | baseURL | ||
| ) |
Set base URL.
| builder | [in]builder |
| baseURL | [in]base URL |