projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added missing C decl macros for soap.h and srw.h.
[yaz-moved-to-github.git]
/
include
/
yaz
/
srw.h
diff --git
a/include/yaz/srw.h
b/include/yaz/srw.h
index
2243353
..
bf61fda
100644
(file)
--- 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.
*
* Copyright (c) 2002-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: srw.h,v 1.6 2003-03-20 21:15:00 adam Exp $
+ * $Id: srw.h,v 1.8 2003-12-09 12:51:16 adam Exp $
*/
#ifndef YAZ_SRW_H
*/
#ifndef YAZ_SRW_H
@@
-10,6
+10,8
@@
#include <yaz/soap.h>
#include <yaz/soap.h>
+YAZ_BEGIN_CDECL
+
typedef struct {
char *recordSchema;
int recordPacking;
typedef struct {
char *recordSchema;
int recordPacking;
@@
-66,14
+68,28
@@
typedef struct {
int *nextRecordPosition;
} Z_SRW_searchRetrieveResponse;
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_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;
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;
} u;
} Z_SRW_PDU;
@@
-88,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_EXPORT int yaz_diag_srw_to_bib1(int srw_code);
+YAZ_END_CDECL
#endif
#endif