2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.1 2002-09-16 18:45:14 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 {
49 int support_named_resultsets;
53 ZOOM_resultset resultsets;
54 ZOOM_Event m_queue_front;
55 ZOOM_Event m_queue_back;
59 struct ZOOM_options_entry {
62 struct ZOOM_options_entry *next;
65 struct ZOOM_options_p {
67 void *callback_handle;
68 ZOOM_options_callback callback_func;
69 struct ZOOM_options_entry *entries;
74 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
76 struct ZOOM_resultset_p {
78 Z_SortKeySpecList *r_sort_spec;
87 ZOOM_record_cache record_cache;
89 ZOOM_connection connection;
93 struct ZOOM_record_p {
96 Z_NamePlusRecord *npr;
99 struct ZOOM_record_cache_p {
100 struct ZOOM_record_p rec;
101 char *elementSetName;
104 ZOOM_record_cache next;
107 struct ZOOM_scanset_p {
110 ZOOM_options options;
111 ZOOM_connection connection;
112 Z_AttributesPlusTerm *termListAndStartPoint;
113 Z_AttributeSetId *attributeSet;
114 Z_ScanResponse *scan_response;
117 struct ZOOM_package_p {
120 ZOOM_options options;
121 ZOOM_connection connection;
130 #define ZOOM_TASK_SEARCH 1
132 ZOOM_resultset resultset;
134 #define ZOOM_TASK_RETRIEVE 2
137 ZOOM_resultset resultset;
140 #define ZOOM_TASK_CONNECT 3
141 #define ZOOM_TASK_SCAN 4
145 #define ZOOM_TASK_PACKAGE 5
146 ZOOM_package package;
151 struct ZOOM_Event_p {
157 void ZOOM_options_addref (ZOOM_options opt);