X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=zoom%2Fzoom-p.h;h=87f517ea10ad74ed8bd819139dba47ced2e93025;hb=3599bbc013ec757862d8a2d6e62aa6a432ba4514;hp=85a80dbfc4014169f732a73858e0bbb22e0fd7d1;hpb=13671e7cc0f3dd4e4b02f94d64a50778c5696ba6;p=yaz-moved-to-github.git diff --git a/zoom/zoom-p.h b/zoom/zoom-p.h index 85a80db..87f517e 100644 --- a/zoom/zoom-p.h +++ b/zoom/zoom-p.h @@ -1,11 +1,12 @@ /* * Private C header for ZOOM C. - * $Id: zoom-p.h,v 1.5 2001-11-18 21:14:23 adam Exp $ + * $Id: zoom-p.h,v 1.8 2001-12-30 22:21:11 adam Exp $ */ #include #include #include #include +#include typedef struct ZOOM_Event_p *ZOOM_Event; @@ -41,6 +42,8 @@ struct ZOOM_connection_p { char *cookie_out; char *cookie_in; int async; + int support_named_resultsets; + int last_event; ZOOM_task tasks; ZOOM_options options; ZOOM_resultset resultsets; @@ -74,6 +77,7 @@ struct ZOOM_resultset_p { int start; int count; int piggyback; + char *setname; ODR odr; ZOOM_record_cache record_cache; ZOOM_options options; @@ -94,15 +98,35 @@ struct ZOOM_record_cache_p { ZOOM_record_cache next; }; +struct ZOOM_scanset_p { + int refcount; + ODR odr; + ZOOM_options options; + ZOOM_connection connection; + Z_AttributesPlusTerm *termListAndStartPoint; + Z_AttributeSetId *attributeSet; + Z_ScanResponse *scan_response; +}; + struct ZOOM_task_p { int running; int which; union { #define ZOOM_TASK_SEARCH 1 - ZOOM_resultset resultset; + struct { + ZOOM_resultset resultset; + } search; #define ZOOM_TASK_RETRIEVE 2 - /** also resultset here */ + struct { + int start; + ZOOM_resultset resultset; + int count; + } retrieve; #define ZOOM_TASK_CONNECT 3 +#define ZOOM_TASK_SCAN 4 + struct { + ZOOM_scanset scan; + } scan; } u; ZOOM_task next; }; @@ -114,10 +138,3 @@ struct ZOOM_Event_p { }; -#ifndef YAZ_DATE -COMSTACK cs_create_host(const char *type_and_host, int blocking, void **vp); -Odr_oid *yaz_str_to_z3950oid (ODR o, int oid_class, const char *str); -Z_SortKeySpecList *yaz_sort_spec (ODR out, const char *arg); -#else -#include -#endif