2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.9 2002-05-17 12:48:30 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 {
45 int support_named_resultsets;
49 ZOOM_resultset resultsets;
50 ZOOM_Event m_queue_front;
51 ZOOM_Event m_queue_back;
55 struct ZOOM_options_entry {
58 struct ZOOM_options_entry *next;
61 struct ZOOM_options_p {
63 void *callback_handle;
64 ZOOM_options_callback callback_func;
65 struct ZOOM_options_entry *entries;
69 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
71 struct ZOOM_resultset_p {
73 Z_SortKeySpecList *r_sort_spec;
82 ZOOM_record_cache record_cache;
84 ZOOM_connection connection;
88 struct ZOOM_record_p {
91 Z_NamePlusRecord *npr;
94 struct ZOOM_record_cache_p {
95 struct ZOOM_record_p rec;
98 ZOOM_record_cache next;
101 struct ZOOM_scanset_p {
104 ZOOM_options options;
105 ZOOM_connection connection;
106 Z_AttributesPlusTerm *termListAndStartPoint;
107 Z_AttributeSetId *attributeSet;
108 Z_ScanResponse *scan_response;
115 #define ZOOM_TASK_SEARCH 1
117 ZOOM_resultset resultset;
119 #define ZOOM_TASK_RETRIEVE 2
122 ZOOM_resultset resultset;
125 #define ZOOM_TASK_CONNECT 3
126 #define ZOOM_TASK_SCAN 4
134 struct ZOOM_Event_p {
140 void ZOOM_options_addref (ZOOM_options opt);