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_RDFa_Handlers | CSEM_RDFa_Handlers |
Handlers for RDFa-Lite streaming parser. | |
typedef CSEM_Bool(* | CSEM_RDFa_ItemStart )(const void *userdata, const CSEM_Url *resource, const CSEM_List *types) |
Handler for start scope of an item. | |
typedef void(* | CSEM_RDFa_ItemEnd )(const void *userdata) |
Handler for end scope of an item. | |
typedef CSEM_Bool(* | CSEM_RDFa_PropStart )(const void *userdata, const char *propName, CSEM_Bool hasUrlValue) |
Handler for start scope of a property. | |
typedef void(* | CSEM_RDFa_PropValue )(const void *userdata, const char *value, int len) |
Handler for property value. | |
typedef void(* | CSEM_RDFa_PropEnd )(const void *userdata) |
Handler for end scope of a property. | |
Functions | |
CSEM_Error | CSEM_RDFa_CreateHandler (CSEM_RDFa_Handlers **handler) |
Create a handler manager for RDFa Lite. | |
void | CSEM_RDFa_DisposeHandler (CSEM_RDFa_Handlers *handler) |
Dispose a handler manager. | |
void | CSEM_RDFa_SetItemStart (CSEM_RDFa_Handlers *handler, CSEM_RDFa_ItemStart itemStart) |
Set item start handler to the handler manager. | |
void | CSEM_RDFa_SetItemEnd (CSEM_RDFa_Handlers *handler, CSEM_RDFa_ItemEnd itemEnd) |
Set item end handler to the handler manager. | |
void | CSEM_RDFa_SetPropStart (CSEM_RDFa_Handlers *handler, CSEM_RDFa_PropStart propStart) |
Set property start handler to the handler manager. | |
void | CSEM_RDFa_SetPropValue (CSEM_RDFa_Handlers *handler, CSEM_RDFa_PropValue propValue) |
Set property value handler to the handler manager. | |
void | CSEM_RDFa_SetPropEnd (CSEM_RDFa_Handlers *handler, CSEM_RDFa_PropEnd propEnd) |
Set property end handler to the handler manager. |
#define CSEM_NS_C_BEGIN |
#define CSEM_NS_C_END |
typedef typedefCSEM_NS_C_BEGIN struct CSEM_RDFa_Handlers CSEM_RDFa_Handlers |
Handlers for RDFa-Lite streaming parser.
typedef void(* CSEM_RDFa_ItemEnd)(const void *userdata) |
Handler for end scope of an item.
userdata | [out]user data |
typedef CSEM_Bool(* CSEM_RDFa_ItemStart)(const void *userdata, const CSEM_Url *resource, const CSEM_List *types) |
Handler for start scope of an item.
userdata | [out]user data |
resource | [out]item id |
types | [out]types of the item |
typedef void(* CSEM_RDFa_PropEnd)(const void *userdata) |
Handler for end scope of a property.
userdata | [out]user data |
typedef CSEM_Bool(* CSEM_RDFa_PropStart)(const void *userdata, const char *propName, CSEM_Bool hasUrlValue) |
Handler for start scope of a property.
userdata | [out]user data |
propName | [out]the property name TODO : support space separated names |
hasUrlValue | [out]CSEM_TRUE if the value type of the property is URL. |
typedef void(* CSEM_RDFa_PropValue)(const void *userdata, const char *value, int len) |
Handler for property value.
The values may be divided into pieces with multiple call back.
userdata | [out]user data |
value | [out]property value |
len | [out]length of the value |
CSEM_Error CSEM_RDFa_CreateHandler | ( | CSEM_RDFa_Handlers ** | handler | ) |
Create a handler manager for RDFa Lite.
handler | [out]created handler manager |
void CSEM_RDFa_DisposeHandler | ( | CSEM_RDFa_Handlers * | handler | ) |
Dispose a handler manager.
handler | [in]handler manager to be freed |
void CSEM_RDFa_SetItemEnd | ( | CSEM_RDFa_Handlers * | handler, |
CSEM_RDFa_ItemEnd | itemEnd | ||
) |
Set item end handler to the handler manager.
handler | [in]handler manager |
itemEnd | [in]item end handler |
void CSEM_RDFa_SetItemStart | ( | CSEM_RDFa_Handlers * | handler, |
CSEM_RDFa_ItemStart | itemStart | ||
) |
Set item start handler to the handler manager.
handler | [in]handler manager |
itemStart | [in]item start handler |
void CSEM_RDFa_SetPropEnd | ( | CSEM_RDFa_Handlers * | handler, |
CSEM_RDFa_PropEnd | propEnd | ||
) |
Set property end handler to the handler manager.
handler | [in]handler manager |
propEnd | [in]property end handler |
void CSEM_RDFa_SetPropStart | ( | CSEM_RDFa_Handlers * | handler, |
CSEM_RDFa_PropStart | propStart | ||
) |
Set property start handler to the handler manager.
handler | [in]handler manager |
propStart | [in]property start handler |
void CSEM_RDFa_SetPropValue | ( | CSEM_RDFa_Handlers * | handler, |
CSEM_RDFa_PropValue | propValue | ||
) |
Set property value handler to the handler manager.
handler | [in]handler manager |
propValue | [in]property value handler |