libcsem  0.2
csem_rdfa_stream.h
Go to the documentation of this file.
00001 /*
00002  * $Id: csem__rdfa__stream_8h_source.html,v 1.1 2013-04-22 20:16:23 hitoshi Exp $
00003  * See Copyright for the status of this software.
00004  * uchida@w3.org
00005  */
00006 #ifndef CSEM_RDFa_STREAM_H
00007 #define CSEM_RDFa_STREAM_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_list.h"
00020 #include "csem_url.h"
00021 
00025 typedef struct CSEM_RDFa_Handlers CSEM_RDFa_Handlers;
00034 typedef CSEM_Bool (*CSEM_RDFa_ItemStart)(const void *userdata, const CSEM_Url *resource, const CSEM_List *types);
00039 typedef void (*CSEM_RDFa_ItemEnd)(const void *userdata);
00048 typedef CSEM_Bool (*CSEM_RDFa_PropStart)(const void *userdata, const char *propName, CSEM_Bool hasUrlValue);
00056 typedef void (*CSEM_RDFa_PropValue)(const void *userdata, const char *value, int len);
00061 typedef void (*CSEM_RDFa_PropEnd)(const void *userdata);
00067 CSEM_Error CSEM_RDFa_CreateHandler(CSEM_RDFa_Handlers **handler);
00072 void CSEM_RDFa_DisposeHandler(CSEM_RDFa_Handlers *handler);
00078 void CSEM_RDFa_SetItemStart(CSEM_RDFa_Handlers *handler, CSEM_RDFa_ItemStart itemStart);
00084 void CSEM_RDFa_SetItemEnd(CSEM_RDFa_Handlers *handler, CSEM_RDFa_ItemEnd itemEnd);
00090 void CSEM_RDFa_SetPropStart(CSEM_RDFa_Handlers *handler, CSEM_RDFa_PropStart propStart);
00096 void CSEM_RDFa_SetPropValue(CSEM_RDFa_Handlers *handler, CSEM_RDFa_PropValue propValue);
00102 void CSEM_RDFa_SetPropEnd(CSEM_RDFa_Handlers *handler, CSEM_RDFa_PropEnd propEnd);
00103 
00104 CSEM_NS_C_END
00105 
00106 #endif /* CSEM_RDFa_STREAM_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines