Changed prototype of yaz_srw_serve to solve threading problem
[yaz-moved-to-github.git] / include / yaz / srw-util.h
1 /* $Id: srw-util.h,v 1.2 2003-01-20 13:04:50 adam Exp $
2    Copyright (C) 2002-2003
3    Index Data Aps
4
5 This file is part of the YAZ toolkit.
6
7 See the file LICENSE.
8 */
9
10 #include "srw_H.h"
11 #include <yaz/cql.h>
12 struct cql_node *xcql_to_cqlnode(struct xcql__operandType *p);
13
14 typedef struct xslt_maps_info *xslt_maps;
15 typedef struct xslt_map_result_info *xslt_map_result;
16
17 xslt_maps xslt_maps_create(void);
18 int xslt_maps_file(xslt_maps m, const char *f);
19 void xslt_maps_free(xslt_maps m);
20
21 xslt_map_result xslt_map (xslt_maps m, const char *schema_source,
22                           const char *scheme_target,
23                           const char *in_buf, int in_len);
24 void xslt_map_free (xslt_map_result res);
25
26 char *xslt_map_result_buf(xslt_map_result res);
27 int xslt_map_result_len(xslt_map_result res);
28 char *xslt_map_result_schema(xslt_map_result res);
29 const char *yaz_srw_diag_str (int code);
30
31 void yaz_srw_serve (struct soap *soap,
32                     int (*sr_h)(void *userinfo,
33                                 struct soap * soap,
34                                 xsd__string  *query,
35                                 struct xcql__operandType *xQuery,       
36                                 xsd__string *sortKeys,
37                                 struct xsort__xSortKeysType *xSortKeys,
38                                 xsd__integer *startRecord,
39                                 xsd__integer *maximumRecords,
40                                 xsd__string *recordSchema,
41                                 xsd__string *recordPacking,
42                                 struct zs__searchRetrieveResponse *res),
43                     int (*e_h)(void *userinfo,
44                                struct soap *soap,
45                                struct zs__explainResponse *explainResponse));
46
47 extern struct Namespace srw_namespaces[];