2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: zoom-p.h,v 1.6 2005-01-15 19:47:15 adam Exp $
9 * \brief Internal header for ZOOM implementation
12 #include <yaz/proto.h>
13 #include <yaz/comstack.h>
14 #include <yaz/wrbuf.h>
16 #include <yaz/sortspec.h>
17 typedef struct ZOOM_Event_p *ZOOM_Event;
21 Z_SortKeySpecList *sort_spec;
28 #define STATE_CONNECTING 1
29 #define STATE_ESTABLISHED 2
31 #define ZOOM_SELECT_READ 1
32 #define ZOOM_SELECT_WRITE 2
33 #define ZOOM_SELECT_EXCEPT 4
35 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;
68 struct ZOOM_options_entry {
71 struct ZOOM_options_entry *next;
74 struct ZOOM_options_p {
76 void *callback_handle;
77 ZOOM_options_callback callback_func;
78 struct ZOOM_options_entry *entries;
83 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
85 struct ZOOM_resultset_p {
86 Z_SortKeySpecList *r_sort_spec;
97 ZOOM_record_cache record_cache;
99 ZOOM_connection connection;
103 struct ZOOM_record_p {
108 Z_NamePlusRecord *npr;
111 struct ZOOM_record_cache_p {
112 struct ZOOM_record_p rec;
113 char *elementSetName;
117 ZOOM_record_cache next;
120 struct ZOOM_scanset_p {
123 ZOOM_options options;
124 ZOOM_connection connection;
125 Z_AttributesPlusTerm *termListAndStartPoint;
126 Z_AttributeSetId *attributeSet;
127 Z_ScanResponse *scan_response;
130 struct ZOOM_package_p {
133 ZOOM_options options;
134 ZOOM_connection connection;
143 #define ZOOM_TASK_SEARCH 1
145 ZOOM_resultset resultset;
147 #define ZOOM_TASK_RETRIEVE 2
150 ZOOM_resultset resultset;
153 #define ZOOM_TASK_CONNECT 3
154 #define ZOOM_TASK_SCAN 4
158 #define ZOOM_TASK_PACKAGE 5
159 ZOOM_package package;
160 #define ZOOM_TASK_SORT 6
162 ZOOM_resultset resultset;
169 struct ZOOM_Event_p {
175 void ZOOM_options_addref (ZOOM_options opt);