2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.4 2001-11-13 22:57:03 adam Exp $
6 #include <yaz/comstack.h>
10 typedef struct Z3950_Event_p *Z3950_Event;
12 struct Z3950_query_p {
14 Z_SortKeySpecList *sort_spec;
20 #define STATE_CONNECTING 1
21 #define STATE_ESTABLISHED 2
23 #define Z3950_SELECT_READ 1
24 #define Z3950_SELECT_WRITE 2
25 #define Z3950_SELECT_EXCEPT 4
27 struct Z3950_connection_p {
45 Z3950_options options;
46 Z3950_resultset resultsets;
47 Z3950_Event m_queue_front;
48 Z3950_Event m_queue_back;
52 struct Z3950_options_entry {
55 struct Z3950_options_entry *next;
58 struct Z3950_options_p {
60 void *callback_handle;
61 Z3950_options_callback callback_func;
62 struct Z3950_options_entry *entries;
66 typedef struct Z3950_record_cache_p *Z3950_record_cache;
68 struct Z3950_resultset_p {
70 Z_SortKeySpecList *r_sort_spec;
78 Z3950_record_cache record_cache;
79 Z3950_options options;
80 Z3950_connection connection;
84 struct Z3950_record_p {
87 Z_NamePlusRecord *npr;
90 struct Z3950_record_cache_p {
91 struct Z3950_record_p rec;
94 Z3950_record_cache next;
101 #define Z3950_TASK_SEARCH 1
102 Z3950_resultset resultset;
103 #define Z3950_TASK_RETRIEVE 2
104 /** also resultset here */
105 #define Z3950_TASK_CONNECT 3
110 struct Z3950_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>