X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fbackend.h;h=e8d8bc2018be905c4fc3b90aedb9d8d16ab100d8;hb=48bd65a2f5bda9d3407d92137524c14d288ec074;hp=46d1d4bba3a133f133746b1faf96d1299ef7cd30;hpb=4f7e8b411cb0c30c02b3eaf23fdfef5275dae098;p=yaz-moved-to-github.git diff --git a/include/yaz/backend.h b/include/yaz/backend.h index 46d1d4b..e8d8bc2 100644 --- a/include/yaz/backend.h +++ b/include/yaz/backend.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995-2000, Index Data. + * Copyright (c) 1995-2001, Index Data. * * Permission to use, copy, modify, distribute, and sell this software and * its documentation, in whole or in part, for any purpose, is hereby granted, @@ -24,7 +24,26 @@ * OF THIS SOFTWARE. * * $Log: backend.h,v $ - * Revision 1.8 2000-08-31 09:51:25 adam + * Revision 1.14 2002-03-20 14:36:00 adam + * Additional Search Info for GFS + * + * Revision 1.13 2002/03/05 12:45:49 mike + * Add trivial support for implementation_id specified by backend. + * + * Revision 1.12 2001/03/25 21:55:12 adam + * Added odr_intdup. Ztest server returns TaskPackage for ItemUpdate. + * + * Revision 1.11 2001/01/30 21:34:17 adam + * Added step-size for Scan backend interface. + * + * Revision 1.10 2000/10/02 11:07:44 adam + * Added peer_name member for bend_init handler. Changed the YAZ + * client so that tcp: can be avoided in target spec. + * + * Revision 1.9 2000/08/31 10:20:12 adam + * Added member request_format and output_format for backend fetch method. + * + * Revision 1.8 2000/08/31 09:51:25 adam * Added record_syntax member for fetch method (raw OID). * * Revision 1.7 2000/04/05 07:39:55 adam @@ -121,6 +140,7 @@ typedef struct { int hits; /* number of hits */ int errcode; /* 0==OK */ char *errstring; /* system error string or NULL */ + Z_OtherInformation *search_info; /* additional search info */ } bend_search_rr; /* extended present handler. Does not replace bend_fetch. */ @@ -129,7 +149,6 @@ typedef struct { int start; int number; /* record number */ oid_value format; /* One of the CLASS_RECSYN members */ - int *record_syntax; /* same as above (raw OID) */ Z_ReferenceId *referenceId;/* reference ID */ Z_RecordComposition *comp; /* Formatting instructions */ ODR stream; /* encoding stream - memory source if required */ @@ -147,7 +166,7 @@ typedef struct bend_fetch_rr { int number; /* record number */ Z_ReferenceId *referenceId;/* reference ID */ oid_value request_format; /* One of the CLASS_RECSYN members */ - int *record_syntax; /* same as above (raw OID) */ + int *request_format_raw; /* same as above (raw OID) */ Z_RecordComposition *comp; /* Formatting instructions */ ODR stream; /* encoding stream - memory source if req */ ODR print; /* printing stream */ @@ -157,6 +176,7 @@ typedef struct bend_fetch_rr { char *record; /* record */ int last_in_set; /* is it? */ oid_value output_format; /* format */ + int *output_format_raw; /* used instead of above if not-null */ int errcode; /* 0==success */ char *errstring; /* system error string or NULL */ int surrogate_flag; /* surrogate diagnostic */ @@ -183,6 +203,7 @@ typedef struct bend_scan_rr { ODR stream; /* encoding stream - memory source if required */ ODR print; /* printing stream */ + int *step_size; /* step size */ int term_position; /* desired index of term in result list/returned */ int num_entries; /* number of entries requested/returned */ @@ -233,6 +254,7 @@ typedef struct bend_esrequest_rr bend_association association; int errcode; /* 0==success, -1==accepted, >0 = failure */ char *errstring; /* system error string or NULL */ + Z_TaskPackage *taskPackage; } bend_esrequest_rr; typedef struct bend_segment_rr { @@ -250,7 +272,9 @@ typedef struct bend_initrequest ODR stream; /* encoding stream */ ODR print; /* printing stream */ Z_ReferenceId *referenceId;/* reference ID */ + char *peer_name; /* dns host of peer (client) */ + char *implementation_id; char *implementation_name; char *implementation_version; int (*bend_sort) (void *handle, bend_sort_rr *rr);