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
Use shared WRBUF for returned record strings
[yaz-moved-to-github.git]
/
src
/
zoom-p.h
diff --git
a/src/zoom-p.h
b/src/zoom-p.h
index
3535221
..
05f5503
100644
(file)
--- a/
src/zoom-p.h
+++ b/
src/zoom-p.h
@@
-37,6
+37,8
@@
#include <yaz/srw.h>
#include <yaz/mutex.h>
#include <yaz/srw.h>
#include <yaz/mutex.h>
+#define SHPTR 1
+
typedef struct ZOOM_Event_p *ZOOM_Event;
struct ZOOM_query_p {
typedef struct ZOOM_Event_p *ZOOM_Event;
struct ZOOM_query_p {
@@
-152,11
+154,19
@@
struct ZOOM_resultset_p {
char **databaseNames;
int num_databaseNames;
YAZ_MUTEX mutex;
char **databaseNames;
int num_databaseNames;
YAZ_MUTEX mutex;
+#if SHPTR
+ struct WRBUF_shptr *record_wrbuf;
+#endif
};
struct ZOOM_record_p {
ODR odr;
};
struct ZOOM_record_p {
ODR odr;
+#if SHPTR
+ struct WRBUF_shptr *record_wrbuf;
+#else
WRBUF wrbuf;
WRBUF wrbuf;
+#endif
+
Z_NamePlusRecord *npr;
const char *schema;
Z_NamePlusRecord *npr;
const char *schema;