X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fxmlquery.h;h=6456f0b842411a609f56947fad34556fcbd5941e;hb=fc42e0dc251df1d80ffc4c9279478d64d8a7027c;hp=3f83875edf2fd77d91bfbb17766a5aa2eb5c45a2;hpb=50bf09dd2a048e48cdb605ea224a40e672415bce;p=yaz-moved-to-github.git diff --git a/include/yaz/xmlquery.h b/include/yaz/xmlquery.h index 3f83875..6456f0b 100644 --- a/include/yaz/xmlquery.h +++ b/include/yaz/xmlquery.h @@ -1,23 +1,36 @@ /* - * Copyright (C) 1995-2005, Index Data ApS + * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: xmlquery.h,v 1.1 2006-01-27 17:28:16 adam Exp $ + * $Id: xmlquery.h,v 1.5 2006-07-06 10:17:52 adam Exp $ */ +/** \file xmlquery.h + \brief Query / XML conversions +*/ + #ifndef YAZ_XMLQUERY_H #define YAZ_XMLQUERY_H +#if YAZ_HAVE_XML2 #include #include +#include + YAZ_BEGIN_CDECL -YAZ_EXPORT void yaz_query2xml(const Z_Query *q, void *docp_void); +YAZ_EXPORT void yaz_query2xml(const Z_Query *q, xmlDocPtr *docp); +YAZ_EXPORT void yaz_rpnquery2xml(const Z_RPNQuery *rpn, xmlDocPtr *docp); + +YAZ_EXPORT void yaz_xml2query(const void *xmlnodep, Z_Query **query, ODR odr, + int *error_code, const char **addinfo); YAZ_END_CDECL #endif +#endif + /* * Local variables: * c-basic-offset: 4