2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.5 2001-11-18 21:14:23 adam Exp $
6 #include <yaz/comstack.h>
10 typedef struct ZOOM_Event_p *ZOOM_Event;
14 Z_SortKeySpecList *sort_spec;
20 #define STATE_CONNECTING 1
21 #define STATE_ESTABLISHED 2
23 #define ZOOM_SELECT_READ 1
24 #define ZOOM_SELECT_WRITE 2
25 #define ZOOM_SELECT_EXCEPT 4
27 struct ZOOM_connection_p {
46 ZOOM_resultset resultsets;
47 ZOOM_Event m_queue_front;
48 ZOOM_Event m_queue_back;
52 struct ZOOM_options_entry {
55 struct ZOOM_options_entry *next;
58 struct ZOOM_options_p {
60 void *callback_handle;
61 ZOOM_options_callback callback_func;
62 struct ZOOM_options_entry *entries;
66 typedef struct ZOOM_record_cache_p *ZOOM_record_cache;
68 struct ZOOM_resultset_p {
70 Z_SortKeySpecList *r_sort_spec;
78 ZOOM_record_cache record_cache;
80 ZOOM_connection connection;
84 struct ZOOM_record_p {
87 Z_NamePlusRecord *npr;
90 struct ZOOM_record_cache_p {
91 struct ZOOM_record_p rec;
94 ZOOM_record_cache next;
101 #define ZOOM_TASK_SEARCH 1
102 ZOOM_resultset resultset;
103 #define ZOOM_TASK_RETRIEVE 2
104 /** also resultset here */
105 #define ZOOM_TASK_CONNECT 3
110 struct ZOOM_Event_p {
118 COMSTACK cs_create_host(const char *type_and_host, int blocking, void **vp);
119 Odr_oid *yaz_str_to_z3950oid (ODR o, int oid_class, const char *str);
120 Z_SortKeySpecList *yaz_sort_spec (ODR out, const char *arg);
122 #include <yaz/sortspec.h>