2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.8 2003-05-30 10:24:58 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;
26 #define STATE_CONNECTING 1
27 #define STATE_ESTABLISHED 2
29 #define ZOOM_SELECT_READ 1
30 #define ZOOM_SELECT_WRITE 2
31 #define ZOOM_SELECT_EXCEPT 4
33 struct ZOOM_connection_p {
57 int support_named_resultsets;
61 ZOOM_resultset resultsets;
62 ZOOM_Event m_queue_front;
63 ZOOM_Event m_queue_back;
67 struct ZOOM_options_entry {
70 struct ZOOM_options_entry *next;
73 struct ZOOM_options_p {
75 void *callback_handle;
76 ZOOM_options_callback callback_func;
77 struct ZOOM_options_entry *entries;
82 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
84 struct ZOOM_resultset_p {
85 Z_SortKeySpecList *r_sort_spec;
96 ZOOM_record_cache record_cache;
98 ZOOM_connection connection;
102 struct ZOOM_record_p {
106 Z_NamePlusRecord *npr;
107 char *record_charset;
110 struct ZOOM_record_cache_p {
111 struct ZOOM_record_p rec;
112 char *elementSetName;
116 ZOOM_record_cache next;
119 struct ZOOM_scanset_p {
122 ZOOM_options options;
123 ZOOM_connection connection;
124 Z_AttributesPlusTerm *termListAndStartPoint;
125 Z_AttributeSetId *attributeSet;
126 Z_ScanResponse *scan_response;
129 struct ZOOM_package_p {
132 ZOOM_options options;
133 ZOOM_connection connection;
142 #define ZOOM_TASK_SEARCH 1
144 ZOOM_resultset resultset;
146 #define ZOOM_TASK_RETRIEVE 2
149 ZOOM_resultset resultset;
152 #define ZOOM_TASK_CONNECT 3
153 #define ZOOM_TASK_SCAN 4
157 #define ZOOM_TASK_PACKAGE 5
158 ZOOM_package package;
163 struct ZOOM_Event_p {
169 void ZOOM_options_addref (ZOOM_options opt);