For Libxml2 and friends, YAZ defines YAZ_HAVE_{XML2,XSLT,EXSLT) in
[yaz-moved-to-github.git] / include / yaz / xmlquery.h
1 /*
2  * Copyright (C) 1995-2006, Index Data ApS
3  * See the file LICENSE for details.
4  *
5  * $Id: xmlquery.h,v 1.5 2006-07-06 10:17:52 adam Exp $
6  */
7
8 /** \file xmlquery.h
9     \brief Query / XML conversions
10 */
11
12 #ifndef YAZ_XMLQUERY_H
13 #define YAZ_XMLQUERY_H
14
15 #if YAZ_HAVE_XML2
16 #include <yaz/yconfig.h>
17 #include <yaz/proto.h>
18
19 #include <libxml/parser.h>
20
21 YAZ_BEGIN_CDECL
22
23 YAZ_EXPORT void yaz_query2xml(const Z_Query *q, xmlDocPtr *docp);
24 YAZ_EXPORT void yaz_rpnquery2xml(const Z_RPNQuery *rpn, xmlDocPtr *docp);
25
26 YAZ_EXPORT void yaz_xml2query(const void *xmlnodep, Z_Query **query, ODR odr,
27                               int *error_code, const char **addinfo);
28
29 YAZ_END_CDECL
30
31 #endif
32 #endif
33
34 /*
35  * Local variables:
36  * c-basic-offset: 4
37  * indent-tabs-mode: nil
38  * End:
39  * vim: shiftwidth=4 tabstop=8 expandtab
40  */
41