X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fsrw.h;h=df27631da4f5460693c3826a65b947a13c8ca7e0;hb=f64aa61c61bf8bf851d7b66a5fc137669dc77452;hp=f937730edd05a1fdb06d7181cb18a2270b80a215;hpb=073195289eb9b73d6793fa283e5a7dca7a24fba8;p=yaz-moved-to-github.git diff --git a/include/yaz/srw.h b/include/yaz/srw.h index f937730..df27631 100644 --- a/include/yaz/srw.h +++ b/include/yaz/srw.h @@ -2,7 +2,11 @@ * Copyright (c) 2002-2004, Index Data. * See the file LICENSE for details. * - * $Id: srw.h,v 1.14 2004-01-09 18:10:31 adam Exp $ + * $Id: srw.h,v 1.18 2005-01-08 01:20:18 adam Exp $ + */ +/** + * \file srw.h + * \brief Header for SRW/SRU */ #ifndef YAZ_SRW_H @@ -24,8 +28,9 @@ typedef struct { } Z_SRW_record; typedef struct { - int *code; + char *uri; char *details; + char *message; } Z_SRW_diagnostic; typedef struct { @@ -85,7 +90,12 @@ typedef struct { } Z_SRW_explainResponse; typedef struct { - char *scanClause; + int query_type; + union { + char *cql; + char *xcql; + char *pqf; + } scanClause; int *responsePosition; int *maximumTerms; char *stylesheet; @@ -146,9 +156,12 @@ YAZ_EXPORT int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, char **charset, Z_SRW_diagnostic **, int *num_diagnostic); -void yaz_add_srw_diagnostic(ODR o, Z_SRW_diagnostic **d, - int *num, int code, const char *addinfo); +YAZ_EXPORT void yaz_add_srw_diagnostic(ODR o, Z_SRW_diagnostic **d, + int *num, int code, + const char *addinfo); +YAZ_EXPORT void yaz_mk_std_diagnostic(ODR o, Z_SRW_diagnostic *d, + int code, const char *details); YAZ_END_CDECL #endif