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 YAZ to config output
[yaz-moved-to-github.git]
/
src
/
zoom-p.h
diff --git
a/src/zoom-p.h
b/src/zoom-p.h
index
22bc4d6
..
3e6bcff
100644
(file)
--- a/
src/zoom-p.h
+++ b/
src/zoom-p.h
@@
-2,7
+2,7
@@
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
* Copyright (C) 1995-2005, Index Data ApS
* See the file LICENSE for details.
*
- * $Id: zoom-p.h,v 1.8 2005-10-11 18:24:33 adam Exp $
+ * $Id: zoom-p.h,v 1.11 2006-05-10 07:34:38 adam Exp $
*/
/**
* \file zoom-p.h
*/
/**
* \file zoom-p.h
@@
-24,6
+24,14
@@
struct ZOOM_query_p {
char *query_string;
};
char *query_string;
};
+typedef enum {
+ zoom_sru_error,
+ zoom_sru_soap,
+ zoom_sru_get,
+ zoom_sru_post,
+} zoom_sru_mode;
+
+
typedef struct ZOOM_task_p *ZOOM_task;
#define STATE_IDLE 0
typedef struct ZOOM_task_p *ZOOM_task;
#define STATE_IDLE 0
@@
-65,11
+73,13
@@
struct ZOOM_connection_p {
ZOOM_resultset resultsets;
ZOOM_Event m_queue_front;
ZOOM_Event m_queue_back;
ZOOM_resultset resultsets;
ZOOM_Event m_queue_front;
ZOOM_Event m_queue_back;
+ zoom_sru_mode sru_mode;
};
struct ZOOM_options_entry {
char *name;
char *value;
};
struct ZOOM_options_entry {
char *name;
char *value;
+ int len; /* of `value', which may contain NULs */
struct ZOOM_options_entry *next;
};
struct ZOOM_options_entry *next;
};
@@
-82,8
+92,11
@@
struct ZOOM_options_p {
ZOOM_options parent2;
};
ZOOM_options parent2;
};
+
typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
+#define RECORD_HASH_SIZE 131
+
struct ZOOM_resultset_p {
Z_SortKeySpecList *r_sort_spec;
ZOOM_query query;
struct ZOOM_resultset_p {
Z_SortKeySpecList *r_sort_spec;
ZOOM_query query;
@@
-96,7
+109,7
@@
struct ZOOM_resultset_p {
char *setname;
char *schema;
ODR odr;
char *setname;
char *schema;
ODR odr;
- ZOOM_record_cache record_cache;
+ ZOOM_record_cache record_hash[RECORD_HASH_SIZE];
ZOOM_options options;
ZOOM_connection connection;
ZOOM_resultset next;
ZOOM_options options;
ZOOM_connection connection;
ZOOM_resultset next;