2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.4 2004-02-23 09:26:11 adam Exp $
7 #include <yaz/comstack.h>
10 #include <yaz/sortspec.h>
11 typedef struct ZOOM_Event_p *ZOOM_Event;
15 Z_SortKeySpecList *sort_spec;
22 #define STATE_CONNECTING 1
23 #define STATE_ESTABLISHED 2
25 #define ZOOM_SELECT_READ 1
26 #define ZOOM_SELECT_WRITE 2
27 #define ZOOM_SELECT_EXCEPT 4
29 struct ZOOM_connection_p {
53 int support_named_resultsets;
57 ZOOM_resultset resultsets;
58 ZOOM_Event m_queue_front;
59 ZOOM_Event m_queue_back;
62 struct ZOOM_options_entry {
65 struct ZOOM_options_entry *next;
68 struct ZOOM_options_p {
70 void *callback_handle;
71 ZOOM_options_callback callback_func;
72 struct ZOOM_options_entry *entries;
77 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
79 struct ZOOM_resultset_p {
80 Z_SortKeySpecList *r_sort_spec;
91 ZOOM_record_cache record_cache;
93 ZOOM_connection connection;
97 struct ZOOM_record_p {
102 Z_NamePlusRecord *npr;
105 struct ZOOM_record_cache_p {
106 struct ZOOM_record_p rec;
107 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;
154 #define ZOOM_TASK_SORT 6
156 ZOOM_resultset resultset;
163 struct ZOOM_Event_p {
169 void ZOOM_options_addref (ZOOM_options opt);