2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: zoom-p.h,v 1.8 2005-10-11 18:24:33 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;
27 typedef struct ZOOM_task_p *ZOOM_task;
30 #define STATE_CONNECTING 1
31 #define STATE_ESTABLISHED 2
33 #define ZOOM_SELECT_READ 1
34 #define ZOOM_SELECT_WRITE 2
35 #define ZOOM_SELECT_EXCEPT 4
37 struct ZOOM_connection_p {
61 int support_named_resultsets;
65 ZOOM_resultset resultsets;
66 ZOOM_Event m_queue_front;
67 ZOOM_Event m_queue_back;
70 struct ZOOM_options_entry {
73 struct ZOOM_options_entry *next;
76 struct ZOOM_options_p {
78 void *callback_handle;
79 ZOOM_options_callback callback_func;
80 struct ZOOM_options_entry *entries;
85 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
87 struct ZOOM_resultset_p {
88 Z_SortKeySpecList *r_sort_spec;
99 ZOOM_record_cache record_cache;
100 ZOOM_options options;
101 ZOOM_connection connection;
105 struct ZOOM_record_p {
110 Z_NamePlusRecord *npr;
113 struct ZOOM_record_cache_p {
114 struct ZOOM_record_p rec;
115 char *elementSetName;
119 ZOOM_record_cache next;
122 struct ZOOM_scanset_p {
125 ZOOM_options options;
126 ZOOM_connection connection;
127 Z_AttributesPlusTerm *termListAndStartPoint;
128 Z_AttributeSetId *attributeSet;
129 Z_ScanResponse *scan_response;
132 struct ZOOM_package_p {
135 ZOOM_options options;
136 ZOOM_connection connection;
145 #define ZOOM_TASK_SEARCH 1
147 ZOOM_resultset resultset;
149 #define ZOOM_TASK_RETRIEVE 2
152 ZOOM_resultset resultset;
155 #define ZOOM_TASK_CONNECT 3
156 #define ZOOM_TASK_SCAN 4
160 #define ZOOM_TASK_PACKAGE 5
161 ZOOM_package package;
162 #define ZOOM_TASK_SORT 6
164 ZOOM_resultset resultset;
171 struct ZOOM_Event_p {
177 void ZOOM_options_addref (ZOOM_options opt);
181 * indent-tabs-mode: nil
183 * vim: shiftwidth=4 tabstop=8 expandtab