2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.7 2003-05-20 08:22:33 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 {
105 Z_NamePlusRecord *npr;
108 struct ZOOM_record_cache_p {
109 struct ZOOM_record_p rec;
110 char *elementSetName;
114 ZOOM_record_cache next;
117 struct ZOOM_scanset_p {
120 ZOOM_options options;
121 ZOOM_connection connection;
122 Z_AttributesPlusTerm *termListAndStartPoint;
123 Z_AttributeSetId *attributeSet;
124 Z_ScanResponse *scan_response;
127 struct ZOOM_package_p {
130 ZOOM_options options;
131 ZOOM_connection connection;
140 #define ZOOM_TASK_SEARCH 1
142 ZOOM_resultset resultset;
144 #define ZOOM_TASK_RETRIEVE 2
147 ZOOM_resultset resultset;
150 #define ZOOM_TASK_CONNECT 3
151 #define ZOOM_TASK_SCAN 4
155 #define ZOOM_TASK_PACKAGE 5
156 ZOOM_package package;
161 struct ZOOM_Event_p {
167 void ZOOM_options_addref (ZOOM_options opt);