X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fsrw.h;h=36f08b3530260f9e67135895c35124c8ec7f3329;hb=8d57c383d5f05e759cb31b33a5b78b3cea2033d6;hp=26f98190296c829e6de2c1e2fdbff20e540e780e;hpb=cdf3162d32f13fd58d0b7fb06b3252bab2bc78ad;p=yaz-moved-to-github.git diff --git a/include/yaz/srw.h b/include/yaz/srw.h index 26f9819..36f08b3 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.13 2004-01-07 21:02:42 adam Exp $ + * $Id: srw.h,v 1.17 2004-10-15 00:18:59 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 { @@ -142,7 +147,16 @@ YAZ_EXPORT void yaz_uri_val_int(const char *path, const char *name, YAZ_EXPORT int yaz_srw_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, Z_SOAP **soap_package, ODR decode, char **charset); YAZ_EXPORT int yaz_sru_decode(Z_HTTP_Request *hreq, Z_SRW_PDU **srw_pdu, - Z_SOAP **soap_package, ODR decode, char **charset); + Z_SOAP **soap_package, ODR decode, + char **charset, + Z_SRW_diagnostic **, int *num_diagnostic); + +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