2 * Private C header for ZOOM C.
3 * $Id: zoom-p.h,v 1.1 2001-10-23 21:00:20 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
24 struct Z3950_connection_p {
43 Z3950_options options;
44 Z3950_resultset resultsets;
48 struct Z3950_options_entry {
51 struct Z3950_options_entry *next;
54 struct Z3950_options_p {
56 void *callback_handle;
57 Z3950_options_callback callback_func;
58 struct Z3950_options_entry *entries;
62 typedef struct Z3950_record_cache_p *Z3950_record_cache;
64 struct Z3950_resultset_p {
66 Z_SortKeySpecList *r_sort_spec;
74 Z3950_record_cache record_cache;
75 Z3950_options options;
76 Z3950_connection connection;
80 struct Z3950_record_p {
83 Z_NamePlusRecord *npr;
86 struct Z3950_record_cache_p {
87 struct Z3950_record_p rec;
90 Z3950_record_cache next;
97 #define Z3950_TASK_SEARCH 1
98 Z3950_resultset resultset;
99 #define Z3950_TASK_RETRIEVE 2
100 /** also resultset here */
107 COMSTACK cs_create_host(const char *type_and_host, int blocking, void **vp);
108 Odr_oid *yaz_str_to_z3950oid (ODR o, int oid_class, const char *str);
109 Z_SortKeySpecList *yaz_sort_spec (ODR out, const char *arg);
111 #include <yaz/sortspec.h>