2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.10 2002-05-18 09:52:37 oleg 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 {
47 int support_named_resultsets;
51 ZOOM_resultset resultsets;
52 ZOOM_Event m_queue_front;
53 ZOOM_Event m_queue_back;
57 struct ZOOM_options_entry {
60 struct ZOOM_options_entry *next;
63 struct ZOOM_options_p {
65 void *callback_handle;
66 ZOOM_options_callback callback_func;
67 struct ZOOM_options_entry *entries;
71 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
73 struct ZOOM_resultset_p {
75 Z_SortKeySpecList *r_sort_spec;
84 ZOOM_record_cache record_cache;
86 ZOOM_connection connection;
90 struct ZOOM_record_p {
93 Z_NamePlusRecord *npr;
96 struct ZOOM_record_cache_p {
97 struct ZOOM_record_p rec;
100 ZOOM_record_cache next;
103 struct ZOOM_scanset_p {
106 ZOOM_options options;
107 ZOOM_connection connection;
108 Z_AttributesPlusTerm *termListAndStartPoint;
109 Z_AttributeSetId *attributeSet;
110 Z_ScanResponse *scan_response;
117 #define ZOOM_TASK_SEARCH 1
119 ZOOM_resultset resultset;
121 #define ZOOM_TASK_RETRIEVE 2
124 ZOOM_resultset resultset;
127 #define ZOOM_TASK_CONNECT 3
128 #define ZOOM_TASK_SCAN 4
136 struct ZOOM_Event_p {
142 void ZOOM_options_addref (ZOOM_options opt);