2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.2 2002-12-09 23:32:29 adam Exp $
6 #include <yaz/comstack.h>
9 #include <yaz/sortspec.h>
11 typedef struct ZOOM_Event_p *ZOOM_Event;
15 Z_SortKeySpecList *sort_spec;
21 #define STATE_CONNECTING 1
22 #define STATE_ESTABLISHED 2
24 #define ZOOM_SELECT_READ 1
25 #define ZOOM_SELECT_WRITE 2
26 #define ZOOM_SELECT_EXCEPT 4
28 struct ZOOM_connection_p {
50 int support_named_resultsets;
54 ZOOM_resultset resultsets;
55 ZOOM_Event m_queue_front;
56 ZOOM_Event m_queue_back;
60 struct ZOOM_options_entry {
63 struct ZOOM_options_entry *next;
66 struct ZOOM_options_p {
68 void *callback_handle;
69 ZOOM_options_callback callback_func;
70 struct ZOOM_options_entry *entries;
75 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
77 struct ZOOM_resultset_p {
79 Z_SortKeySpecList *r_sort_spec;
88 ZOOM_record_cache record_cache;
90 ZOOM_connection connection;
94 struct ZOOM_record_p {
97 Z_NamePlusRecord *npr;
100 struct ZOOM_record_cache_p {
101 struct ZOOM_record_p rec;
102 char *elementSetName;
105 ZOOM_record_cache next;
108 struct ZOOM_scanset_p {
111 ZOOM_options options;
112 ZOOM_connection connection;
113 Z_AttributesPlusTerm *termListAndStartPoint;
114 Z_AttributeSetId *attributeSet;
115 Z_ScanResponse *scan_response;
118 struct ZOOM_package_p {
121 ZOOM_options options;
122 ZOOM_connection connection;
131 #define ZOOM_TASK_SEARCH 1
133 ZOOM_resultset resultset;
135 #define ZOOM_TASK_RETRIEVE 2
138 ZOOM_resultset resultset;
141 #define ZOOM_TASK_CONNECT 3
142 #define ZOOM_TASK_SCAN 4
146 #define ZOOM_TASK_PACKAGE 5
147 ZOOM_package package;
152 struct ZOOM_Event_p {
158 void ZOOM_options_addref (ZOOM_options opt);