30 #ifndef _XQUERY_C_API_H
31 #define _XQUERY_C_API_H
41 #define XQC_VERSION_NUMBER 1
108 unsigned int (*
read)(XQC_InputStream *stream,
void *buffer,
unsigned int length);
116 void (*
free)(XQC_InputStream *stream);
157 const char *error_localname,
const char *description, XQC_Sequence *error_object);
245 const XQC_StaticContext *context, XQC_Expression **expression);
267 const XQC_StaticContext *context, XQC_Expression **expression);
291 const XQC_StaticContext *context, XQC_Expression **expression);
302 const char *string, XQC_Sequence **sequence);
305 FILE *file, XQC_Sequence **sequence);
308 XQC_InputStream *stream, XQC_Sequence **sequence);
318 XQC_Sequence **sequence);
321 XQC_Sequence **sequence);
323 const char *values[],
unsigned int count,
324 XQC_Sequence **sequence);
326 int values[],
unsigned int count,
327 XQC_Sequence **sequence);
329 double values[],
unsigned int count,
330 XQC_Sequence **sequence);
343 void *(*get_interface)(
const XQC_Implementation *implementation,
const char *name);
351 void (*
free)(XQC_Implementation *implementation);
435 (*
declare_ns)(XQC_StaticContext *context,
const char *prefix,
const char *uri);
449 (*
get_ns_by_prefix)(XQC_StaticContext *context,
const char *prefix,
const char **result_ns);
683 void *(*get_interface)(
const XQC_StaticContext *context,
const char *name);
691 void (*
free)(XQC_StaticContext *context);
738 XQC_Error (*
execute)(
const XQC_Expression *expression,
const XQC_DynamicContext *context, XQC_Sequence **sequence);
749 void *(*get_interface)(
const XQC_Expression *expression,
const char *name);
757 void (*
free)(XQC_Expression *expression);
780 XQC_Sequence *value);
783 XQC_Sequence **value);
826 void *(*get_interface)(
const XQC_DynamicContext *context,
const char *name);
834 void (*
free)(XQC_DynamicContext *context);
958 void *(*get_interface)(
const XQC_Sequence *sequence,
const char *name);
966 void (*
free)(XQC_Sequence *sequence);