2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.2 2001-10-24 12:24:43 adam Exp $
6 #include <yaz/comstack.h>
10 struct Z3950_search_p {
12 Z_SortKeySpecList *sort_spec;
18 #define STATE_CONNECTING 1
19 #define STATE_ESTABLISHED 2
21 #define Z3950_SELECT_READ 1
22 #define Z3950_SELECT_WRITE 2
23 #define Z3950_SELECT_EXCEPT 4
25 struct Z3950_connection_p {
44 Z3950_options options;
45 Z3950_resultset resultsets;
49 struct Z3950_options_entry {
52 struct Z3950_options_entry *next;
55 struct Z3950_options_p {
57 void *callback_handle;
58 Z3950_options_callback callback_func;
59 struct Z3950_options_entry *entries;
63 typedef struct Z3950_record_cache_p *Z3950_record_cache;
65 struct Z3950_resultset_p {
67 Z_SortKeySpecList *r_sort_spec;
75 Z3950_record_cache record_cache;
76 Z3950_options options;
77 Z3950_connection connection;
81 struct Z3950_record_p {
84 Z_NamePlusRecord *npr;
87 struct Z3950_record_cache_p {
88 struct Z3950_record_p rec;
91 Z3950_record_cache next;
98 #define Z3950_TASK_SEARCH 1
99 Z3950_resultset resultset;
100 #define Z3950_TASK_RETRIEVE 2
101 /** also resultset here */
108 COMSTACK cs_create_host(const char *type_and_host, int blocking, void **vp);
109 Odr_oid *yaz_str_to_z3950oid (ODR o, int oid_class, const char *str);
110 Z_SortKeySpecList *yaz_sort_spec (ODR out, const char *arg);
112 #include <yaz/sortspec.h>