X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=include%2Fyaz%2Fbackend.h;h=317943cebd9107a381705afb39349c4e02a30393;hb=d7cf0285e21b40c1fba6259d57bdabae94571bd5;hp=e6681a73ecbbd2d49b259dcbd341061494db2884;hpb=8965b9ad303ed2ef26f55db2224860745a0a5128;p=yaz-moved-to-github.git diff --git a/include/yaz/backend.h b/include/yaz/backend.h index e6681a7..317943c 100644 --- a/include/yaz/backend.h +++ b/include/yaz/backend.h @@ -43,7 +43,6 @@ YAZ_BEGIN_CDECL -typedef struct request *bend_request; typedef struct association *bend_association; /** \brief Information for Z39.50/SRU search handler @@ -63,9 +62,7 @@ typedef struct { ODR decode; /**< decode stream (input) */ ODR print; /**< print stream (input) */ - bend_request request; /**< GFS request handle (input) */ bend_association association; /**< GFS association / sesssion (input) */ - int *fd; /**< select fd - not working (output) */ Odr_int hits; /**< hits (output) */ int errcode; /**< Diagnostic code / 0 for no error (output) */ char *errstring; /**< Additional info (output) */ @@ -89,7 +86,6 @@ typedef struct { Z_RecordComposition *comp; /**< Formatting instructions (input) */ ODR stream; /**< encoding stream (input) */ ODR print; /**< printing stream (input) */ - bend_request request; /**< GFS request handle (input) */ bend_association association; /**< GFS association / sesssion (input) */ int errcode; /**< Diagnostic code / 0 for no error (output) */ @@ -216,7 +212,6 @@ typedef struct bend_esrequest_rr ODR decode; /* decoding stream */ ODR print; /* printing stream */ Z_ReferenceId *referenceId;/* reference ID */ - bend_request request; bend_association association; int errcode; /* 0==success, -1==accepted, >0 = failure */ char *errstring; /* system error string or NULL */ @@ -229,7 +224,6 @@ typedef struct bend_segment_rr { ODR stream; ODR decode; ODR print; - bend_request request; bend_association association; } bend_segment_rr; @@ -326,18 +320,6 @@ typedef struct bend_initresult void *handle; /* private handle to the backend module */ } bend_initresult; -YAZ_EXPORT void bend_request_send (bend_association a, bend_request req, - Z_APDU *res); - -YAZ_EXPORT bend_request bend_request_mk (bend_association a); - -YAZ_EXPORT void bend_request_destroy (bend_request *req); - -YAZ_EXPORT Z_ReferenceId *bend_request_getid (ODR odr, bend_request req); -YAZ_EXPORT int bend_backend_respond (bend_association a, bend_request req); -YAZ_EXPORT void bend_request_setdata(bend_request r, void *p); -YAZ_EXPORT void *bend_request_getdata(bend_request r); - /** \brief control block for server */ typedef struct statserv_options_block { @@ -381,6 +363,7 @@ YAZ_EXPORT int statserv_main( int argc, char **argv, bend_initresult *(*bend_init)(bend_initrequest *r), void (*bend_close)(void *handle)); + YAZ_EXPORT statserv_options_block *statserv_getcontrol(void); YAZ_EXPORT void statserv_setcontrol(statserv_options_block *block); YAZ_EXPORT int check_ip_tcpd(void *cd, const char *addr, int len, int type);