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
5cbeab0
..
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.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
*/
#ifndef YAZ_SRW_H
@@
-10,8
+10,13
@@
#include <yaz/soap.h>
#include <yaz/soap.h>
+YAZ_BEGIN_CDECL
+
typedef struct {
char *recordSchema;
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;
char *recordData_buf;
int recordData_len;
int *recordPosition;
@@
-63,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;
@@
-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_EXPORT int yaz_diag_srw_to_bib1(int srw_code);
+YAZ_END_CDECL
#endif
#endif