2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.3 2003-01-06 08:20:29 adam Exp $
7 #include <yaz/srw-util.h>
14 #include <yaz/proto.h>
15 #include <yaz/comstack.h>
16 #include <yaz/wrbuf.h>
18 #include <yaz/sortspec.h>
19 typedef struct ZOOM_Event_p *ZOOM_Event;
23 Z_SortKeySpecList *sort_spec;
29 #define STATE_CONNECTING 1
30 #define STATE_ESTABLISHED 2
32 #define ZOOM_SELECT_READ 1
33 #define ZOOM_SELECT_WRITE 2
34 #define ZOOM_SELECT_EXCEPT 4
36 struct ZOOM_connection_p {
59 int support_named_resultsets;
63 ZOOM_resultset resultsets;
64 ZOOM_Event m_queue_front;
65 ZOOM_Event m_queue_back;
69 struct ZOOM_options_entry {
72 struct ZOOM_options_entry *next;
75 struct ZOOM_options_p {
77 void *callback_handle;
78 ZOOM_options_callback callback_func;
79 struct ZOOM_options_entry *entries;
84 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
86 struct ZOOM_resultset_p {
88 Z_SortKeySpecList *r_sort_spec;
97 ZOOM_record_cache record_cache;
99 ZOOM_connection connection;
103 struct ZOOM_record_p {
106 Z_NamePlusRecord *npr;
109 struct ZOOM_record_cache_p {
110 struct ZOOM_record_p rec;
111 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);