2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.10 2003-07-14 12:59:23 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;
66 struct ZOOM_options_entry {
69 struct ZOOM_options_entry *next;
72 struct ZOOM_options_p {
74 void *callback_handle;
75 ZOOM_options_callback callback_func;
76 struct ZOOM_options_entry *entries;
81 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
83 struct ZOOM_resultset_p {
84 Z_SortKeySpecList *r_sort_spec;
95 ZOOM_record_cache record_cache;
97 ZOOM_connection connection;
101 struct ZOOM_record_p {
106 Z_NamePlusRecord *npr;
109 struct ZOOM_record_cache_p {
110 struct ZOOM_record_p rec;
111 char *elementSetName;
115 ZOOM_record_cache next;
118 struct ZOOM_scanset_p {
121 ZOOM_options options;
122 ZOOM_connection connection;
123 Z_AttributesPlusTerm *termListAndStartPoint;
124 Z_AttributeSetId *attributeSet;
125 Z_ScanResponse *scan_response;
128 struct ZOOM_package_p {
131 ZOOM_options options;
132 ZOOM_connection connection;
141 #define ZOOM_TASK_SEARCH 1
143 ZOOM_resultset resultset;
145 #define ZOOM_TASK_RETRIEVE 2
148 ZOOM_resultset resultset;
151 #define ZOOM_TASK_CONNECT 3
152 #define ZOOM_TASK_SCAN 4
156 #define ZOOM_TASK_PACKAGE 5
157 ZOOM_package package;
162 struct ZOOM_Event_p {
168 void ZOOM_options_addref (ZOOM_options opt);