From 8bc1d0bdc866416424d9ef56bd16f9627688671a Mon Sep 17 00:00:00 2001 From: Heikki Levanto Date: Wed, 11 Apr 2001 12:33:42 +0000 Subject: [PATCH] Working on ursula things --- include/yaz++/yaz-z-server.h | 10 +++++++--- src/yaz-z-server-ursula.cpp | 8 ++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/include/yaz++/yaz-z-server.h b/include/yaz++/yaz-z-server.h index 46654ae..64d0ae3 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.7 2001-04-05 13:09:44 adam Exp $ + * $Id: yaz-z-server.h,v 1.8 2001-04-11 12:33:42 heikki Exp $ */ #include @@ -37,9 +37,13 @@ class YAZ_EXPORT IYaz_Server_Facility { #if HAVE_YAZ_URSULA_H class YAZ_EXPORT Yaz_Facility_Ursula : public IYaz_Server_Facility { public: +// virtual void ursula_service (Z_ExtendedServicesRequest *req, +// Z_UrsPDU *u, +// Z_ExtendedServicesResponse *res) = 0; virtual void ursula_service (Z_ExtendedServicesRequest *req, - Z_UrsPDU *u, - Z_ExtendedServicesResponse *res) = 0; + Z_UrsPDU *u_req, + Z_ExtendedServicesResponse *res, + Z_UrsPDU *u_res) =0; int init(Yaz_Z_Server *server, Z_InitRequest *initRequest, diff --git a/src/yaz-z-server-ursula.cpp b/src/yaz-z-server-ursula.cpp index c8d0f97..2d751f7 100644 --- a/src/yaz-z-server-ursula.cpp +++ b/src/yaz-z-server-ursula.cpp @@ -3,7 +3,10 @@ * See the file LICENSE for details. * * $Log: yaz-z-server-ursula.cpp,v $ - * Revision 1.2 2001-04-05 15:12:24 adam + * Revision 1.3 2001-04-11 12:33:42 heikki + * Working on ursula things + * + * Revision 1.2 2001/04/05 15:12:24 adam * WIN32 updates. * * Revision 1.1 2001/04/04 14:02:49 adam @@ -54,7 +57,8 @@ int Yaz_Facility_Ursula::recv(Yaz_Z_Server *s, Z_APDU *apdu_request) } yaz_log (LOG_LOG, "got ursula packet"); apdu_response = s->create_Z_PDU(Z_APDU_extendedServicesResponse); - ursula_service(req, pdu, apdu_response->u.extendedServicesResponse); + ursula_service(req, pdu, apdu_response->u.extendedServicesResponse, NULL); + // FIXME: Initialize the response pdu... ADAM!!! s->send_Z_PDU(apdu_response); return 1; } -- 1.7.10.4