2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.6 2003-02-20 15:11: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;
95 ZOOM_record_cache record_cache;
97 ZOOM_connection connection;
101 struct ZOOM_record_p {
104 Z_NamePlusRecord *npr;
107 struct ZOOM_record_cache_p {
108 struct ZOOM_record_p rec;
109 char *elementSetName;
113 ZOOM_record_cache next;
116 struct ZOOM_scanset_p {
119 ZOOM_options options;
120 ZOOM_connection connection;
121 Z_AttributesPlusTerm *termListAndStartPoint;
122 Z_AttributeSetId *attributeSet;
123 Z_ScanResponse *scan_response;
126 struct ZOOM_package_p {
129 ZOOM_options options;
130 ZOOM_connection connection;
139 #define ZOOM_TASK_SEARCH 1
141 ZOOM_resultset resultset;
143 #define ZOOM_TASK_RETRIEVE 2
146 ZOOM_resultset resultset;
149 #define ZOOM_TASK_CONNECT 3
150 #define ZOOM_TASK_SCAN 4
154 #define ZOOM_TASK_PACKAGE 5
155 ZOOM_package package;
160 struct ZOOM_Event_p {
166 void ZOOM_options_addref (ZOOM_options opt);