2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.4 2003-02-14 18:49:24 adam Exp $
10 #include <yaz/proto.h>
11 #include <yaz/comstack.h>
12 #include <yaz/wrbuf.h>
14 #include <yaz/sortspec.h>
15 typedef struct ZOOM_Event_p *ZOOM_Event;
19 Z_SortKeySpecList *sort_spec;
25 #define STATE_CONNECTING 1
26 #define STATE_ESTABLISHED 2
28 #define ZOOM_SELECT_READ 1
29 #define ZOOM_SELECT_WRITE 2
30 #define ZOOM_SELECT_EXCEPT 4
32 struct ZOOM_connection_p {
56 int support_named_resultsets;
60 ZOOM_resultset resultsets;
61 ZOOM_Event m_queue_front;
62 ZOOM_Event m_queue_back;
66 struct ZOOM_options_entry {
69 struct ZOOM_options_entry *next;
72 struct ZOOM_options_p {
74 void *callback_handle;
75 ZOOM_options_callback callback_func;
76 struct ZOOM_options_entry *entries;
81 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
83 struct ZOOM_resultset_p {
85 Z_SortKeySpecList *r_sort_spec;
94 ZOOM_record_cache record_cache;
96 ZOOM_connection connection;
100 struct ZOOM_record_p {
103 Z_NamePlusRecord *npr;
106 struct ZOOM_record_cache_p {
107 struct ZOOM_record_p rec;
108 char *elementSetName;
111 ZOOM_record_cache next;
114 struct ZOOM_scanset_p {
117 ZOOM_options options;
118 ZOOM_connection connection;
119 Z_AttributesPlusTerm *termListAndStartPoint;
120 Z_AttributeSetId *attributeSet;
121 Z_ScanResponse *scan_response;
124 struct ZOOM_package_p {
127 ZOOM_options options;
128 ZOOM_connection connection;
137 #define ZOOM_TASK_SEARCH 1
139 ZOOM_resultset resultset;
141 #define ZOOM_TASK_RETRIEVE 2
144 ZOOM_resultset resultset;
147 #define ZOOM_TASK_CONNECT 3
148 #define ZOOM_TASK_SCAN 4
152 #define ZOOM_TASK_PACKAGE 5
153 ZOOM_package package;
158 struct ZOOM_Event_p {
164 void ZOOM_options_addref (ZOOM_options opt);