16 #ifndef ZORBA_ZORBAC_API_H
17 #define ZORBA_ZORBAC_API_H
21 #include <zorba/config.h>
39 void*
user_data,
void* function_user_data);
62 ZORBA_DLL_PUBLIC XQC_Error
164 void* global_user_data);
241 const char *local_name,
242 const char *description,
243 const char *query_uri,
245 unsigned int column);
XQC_Error(* set_double)(Zorba_ItemSetter *setter, double value)
Call this to specify the next item as a double.
XQC_Error(* external_function_next)(XQC_Sequence **args, unsigned int argc, Zorba_ItemSetter *setter, void *user_data, void *function_user_data)
XQC_Error(* set_integer)(Zorba_ItemSetter *setter, int value)
Call this to specify the next item as an integer.
XQC_Error(* register_external_function)(Zorba_StaticContext *context, const char *uri, const char *localname, external_function_init init_fn, external_function_next next_fn, external_function_free free_fn, void *global_user_data)
Register an external function that can be called within a query.
void * user_data
Can be used for user specific purposes.
void(* write)(Zorba_OutputStream stream, const char *buf, unsigned int length)
The function is called to provide the streaming result of a query in the buffer provided.
The Zorba_OutputStream struct is designed to be passed to an XQC implementation in order to return st...
XQC_Error(* get_default_collation)(Zorba_StaticContext *context, const char **uri)
Get the URI of the default collation.
void(* free)(Zorba_OutputStream stream)
Called to free the resources associated with the Zorba_OutputStream.
XQC_Error(* set_xquery_version)(Zorba_StaticContext *context, XQC_XQueryVersion ver)
Sets the XQuery processor's version to either xquery_version_1_0 or xquery_version_3_0.
void(* external_function_free)(void *user_data, void *function_user_data)
XQC_Error(* get_xquery_version)(Zorba_StaticContext *context, XQC_XQueryVersion *ver)
Returns the XQuery processor's version that is set in the given static context.
XQC_Error(* set_string)(Zorba_ItemSetter *setter, const char *value)
Call this to specify the next item as a string.
ZORBA_DLL_PUBLIC XQC_Error zorba_implementation(XQC_Implementation **impl, void *store)
The zorba_implementation function creates a new zorba_implementation::XQC_Implementation object...
void * user_data
Can be used for user specific purposes.
XQC_Error(* set_typed_value)(Zorba_ItemSetter *setter, XQC_ItemType type, const char *value)
Call this to specify the next item as an arbitrary type, providing the value as a string...
Zorba_ItemSetter is designed to allow external functions to set the next XQuery data model item to be...
XQC_Error(* set_default_collation)(Zorba_StaticContext *context, const char *uri)
Set the URI of the default collation.
void(* external_function_init)(void **user_data, void *function_user_data)
void(* error)(Zorba_ErrorHandler *handler, XQC_Error error, const char *local_name, const char *description, const char *query_uri, unsigned int line, unsigned int column)
XQC_Error(* add_collation)(Zorba_StaticContext *context, const char *uri)
Add a collation URI.