X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Fsrw.h;h=bf61fda92c7a37c069352a2c797d93626711a430;hp=5cbeab09a60c0b4fb5fb65e6bc17b7513dc2b890;hb=5b417578fa8bce4671d29d59201ae0ad0c7e5653;hpb=5f9dfb9266ab741d41a636249a39a254e4fb7211 diff --git a/include/yaz/srw.h b/include/yaz/srw.h index 5cbeab0..bf61fda 100644 --- a/include/yaz/srw.h +++ b/include/yaz/srw.h @@ -2,7 +2,7 @@ * Copyright (c) 2002-2003, Index Data. * See the file LICENSE for details. * - * $Id: srw.h,v 1.5 2003-02-23 14:26:57 adam Exp $ + * $Id: srw.h,v 1.8 2003-12-09 12:51:16 adam Exp $ */ #ifndef YAZ_SRW_H @@ -10,8 +10,13 @@ #include +YAZ_BEGIN_CDECL + typedef struct { char *recordSchema; + int recordPacking; +#define Z_SRW_recordPacking_string 0 +#define Z_SRW_recordPacking_XML 1 char *recordData_buf; int recordData_len; int *recordPosition; @@ -63,14 +68,28 @@ typedef struct { int *nextRecordPosition; } Z_SRW_searchRetrieveResponse; +typedef struct { + int dummy; +} Z_SRW_explainRequest; + +typedef struct { + int explainPacking; + char *explainData_buf; + int explainData_len; +} Z_SRW_explainResponse; + #define Z_SRW_searchRetrieve_request 1 #define Z_SRW_searchRetrieve_response 2 +#define Z_SRW_explain_request 3 +#define Z_SRW_explain_response 4 typedef struct { int which; union { Z_SRW_searchRetrieveRequest *request; Z_SRW_searchRetrieveResponse *response; + Z_SRW_explainRequest *explain_request; + Z_SRW_explainResponse *explain_response; } u; } Z_SRW_PDU; @@ -85,5 +104,6 @@ YAZ_EXPORT int yaz_diag_bib1_to_srw (int bib1_code); YAZ_EXPORT int yaz_diag_srw_to_bib1(int srw_code); +YAZ_END_CDECL #endif