X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fbackend.h;h=b4ffc128e5a9849fc345bf449b94d5bdb79c8ee3;hb=28231d4c83085109d800c6689ae778cc041c51e7;hp=dafafad9399321c696f275ad2b8f6f06c7b719ed;hpb=46ed30d0d83dd1b21e58a4db365a60aefaa5aad8;p=yaz-moved-to-github.git diff --git a/include/backend.h b/include/backend.h index dafafad..b4ffc12 100644 --- a/include/backend.h +++ b/include/backend.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, Index Data. + * Copyright (c) 1995-1997, 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, @@ -23,6 +23,10 @@ * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE * OF THIS SOFTWARE. * + * $Log: backend.h,v $ + * Revision 1.16 1997-09-17 12:10:31 adam + * YAZ version 1.4. + * */ #ifndef BACKEND_H @@ -40,6 +44,7 @@ typedef struct bend_initrequest { char *configname; Z_IdAuthentication *auth; + ODR stream; /* encoding stream */ } bend_initrequest; typedef struct bend_initresult @@ -58,6 +63,7 @@ typedef struct bend_searchrequest int num_bases; /* number of databases in list */ char **basenames; /* databases to search */ Z_Query *query; /* query structure */ + ODR stream; /* encoding stream */ } bend_searchrequest; typedef struct bend_searchresult @@ -103,22 +109,25 @@ typedef struct bend_scanrequest Z_AttributesPlusTerm *term; int term_position; /* desired index of term in result list */ int num_entries; /* number of entries requested */ + ODR stream; /* encoding stream - memory source if required */ } bend_scanrequest; +struct scan_entry { + char *term; + int occurrences; +}; + +typedef enum { + BEND_SCAN_SUCCESS, /* ok */ + BEND_SCAN_PARTIAL /* not all entries could be found */ +} bend_scan_status; + typedef struct bend_scanresult { int num_entries; - struct scan_entry - { - char *term; - int occurrences; - } *entries; + struct scan_entry *entries; int term_position; - enum - { - BEND_SCAN_SUCCESS, /* ok */ - BEND_SCAN_PARTIAL /* not all entries could be found */ - } status; + bend_scan_status status; int errcode; char *errstring; } bend_scanresult;