X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fbackend.h;h=2cd474555d5f2f69987db45279b3b1a56ed450e5;hb=51a57f063cc48f3343ab59f10aab92b80d424eaf;hp=2eb7be442f996325fb9b1709ec9852497c541104;hpb=3060b77b776350c6e677c06b3070542dba5c42b6;p=yaz-moved-to-github.git diff --git a/include/backend.h b/include/backend.h index 2eb7be4..2cd4745 100644 --- a/include/backend.h +++ b/include/backend.h @@ -24,7 +24,13 @@ * OF THIS SOFTWARE. * * $Log: backend.h,v $ - * Revision 1.21 1998-07-20 12:38:41 adam + * Revision 1.23 1998-10-13 16:12:23 adam + * Added support for Surrogate Diagnostics for Scan Term entries. + * + * Revision 1.22 1998/09/02 12:41:51 adam + * Added decode stream in bend search structures. + * + * Revision 1.21 1998/07/20 12:38:41 adam * Implemented delete result set service to server API. * * Revision 1.20 1998/05/27 16:57:06 adam @@ -68,6 +74,7 @@ typedef struct char **basenames; /* databases to search */ Z_Query *query; /* query structure */ ODR stream; /* encoding stream */ + ODR decode; /* decoding stream */ } bend_searchrequest; /* old search request output */ @@ -86,6 +93,7 @@ typedef struct { char **basenames; /* databases to search */ Z_Query *query; /* query structure */ ODR stream; /* encode stream */ + ODR decode; /* decode stream */ bend_request request; bend_association association; @@ -152,8 +160,10 @@ typedef struct } bend_scanrequest; struct scan_entry { - char *term; - int occurrences; + char *term; /* the returned scan term */ + int occurrences; /* no of occurrences or -1 if error (see below) */ + int errcode; /* Bib-1 diagnostic code; only used when occur.= -1 */ + char *errstring; /* Additional string */ }; typedef enum {