X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=include%2Fyaz%2B%2B%2Fyaz-z-server.h;h=f91970c363a9bf0b0618ac47d9c735f8a9e96eb8;hb=b79576d9970810e60bc7b34cc9af56f3139fa5d8;hp=64d0ae344b43a75c3a42cd04025bdd9085ef2135;hpb=8bc1d0bdc866416424d9ef56bd16f9627688671a;p=yazpp-moved-to-github.git diff --git a/include/yaz++/yaz-z-server.h b/include/yaz++/yaz-z-server.h index 64d0ae3..f91970c 100644 --- a/include/yaz++/yaz-z-server.h +++ b/include/yaz++/yaz-z-server.h @@ -2,7 +2,7 @@ * Copyright (c) 2000-2001, Index Data. * See the file LICENSE for details. * - * $Id: yaz-z-server.h,v 1.8 2001-04-11 12:33:42 heikki Exp $ + * $Id: yaz-z-server.h,v 1.11 2002-04-24 12:21:03 adam Exp $ */ #include @@ -23,6 +23,10 @@ class YAZ_EXPORT Yaz_Z_ServerUtility { Z_Records *create_nonSurrogateDiagnostics (ODR odr, int error, const char *addinfo); + + void Yaz_Z_ServerUtility::create_diagnostics ( + ODR odr, int error, const char *addinfo, + Z_DiagRec ***dreca, int *num); }; class YAZ_EXPORT IYaz_Server_Facility { @@ -54,9 +58,6 @@ class YAZ_EXPORT Yaz_Facility_Ursula : public IYaz_Server_Facility { class YAZ_EXPORT Yaz_Facility_ILL : public IYaz_Server_Facility { public: - virtual int ill_init (Z_InitRequest *initRequest, - Z_InitResponse *initResponse) = 0; - virtual void ill_service (Z_ExtendedServicesRequest *req, Z_ItemOrder *io, Z_ExtendedServicesResponse *res) = 0; @@ -67,6 +68,23 @@ class YAZ_EXPORT Yaz_Facility_ILL : public IYaz_Server_Facility { int recv(Yaz_Z_Server *server, Z_APDU *apdu); }; +class YAZ_EXPORT Yaz_Facility_Update : public IYaz_Server_Facility { + public: + virtual void update_service (Z_ExtendedServicesRequest *req, + Z_IUUpdate *io, + Z_ExtendedServicesResponse *res) = 0; + + virtual void update_service0 (Z_ExtendedServicesRequest *req, + Z_IU0Update *io, + Z_ExtendedServicesResponse *res) = 0; + + int init(Yaz_Z_Server *server, + Z_InitRequest *initRequest, + Z_InitResponse *initResponse); + int recv(Yaz_Z_Server *server, Z_APDU *apdu); +}; + + class YAZ_EXPORT Yaz_Facility_Retrieval : public IYaz_Server_Facility, public Yaz_Z_ServerUtility { public: