X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-z-server-ursula.cpp;h=13be0f193aa9d2095a76e80d498c074b9afffbdb;hp=c8d0f9753c915758c6afdb05854d136b50a3e0e4;hb=bd3519d1fee5dbaa6afe53ebfd04d3e5b20b5d5a;hpb=71130e9f57a28722e39b6c8cf9700b9e42fe9d7c diff --git a/src/yaz-z-server-ursula.cpp b/src/yaz-z-server-ursula.cpp index c8d0f97..13be0f1 100644 --- a/src/yaz-z-server-ursula.cpp +++ b/src/yaz-z-server-ursula.cpp @@ -2,17 +2,11 @@ * Copyright (c) 2001, Index Data. * See the file LICENSE for details. * - * $Log: yaz-z-server-ursula.cpp,v $ - * Revision 1.2 2001-04-05 15:12:24 adam - * WIN32 updates. - * - * Revision 1.1 2001/04/04 14:02:49 adam - * URSULA / Z-ruth service. - * + * $Id: yaz-z-server-ursula.cpp,v 1.7 2002-10-23 21:24:19 adam Exp $ */ #include -#include +#include #if HAVE_YAZ_URSULA_H int Yaz_Facility_Ursula::init(Yaz_Z_Server *s, Z_InitRequest *initRequest, @@ -41,7 +35,7 @@ int Yaz_Facility_Ursula::recv(Yaz_Z_Server *s, Z_APDU *apdu_request) if (r->which != ODR_EXTERNAL_octet) { - logf (LOG_LOG, "ursula::recv not octet alighed"); + yaz_log (LOG_LOG, "ursula::recv not octet alighed"); return 0; } odr_setbuf (s->odr_decode(), (char*) r->u.octet_aligned->buf, @@ -49,13 +43,15 @@ int Yaz_Facility_Ursula::recv(Yaz_Z_Server *s, Z_APDU *apdu_request) Z_UrsPDU *pdu = 0; if (!z_UrsPDU (s->odr_decode(), &pdu, 0, "")) { - logf (LOG_LOG, "ursula::decode failed"); + yaz_log (LOG_LOG, "ursula::decode failed"); return 0; } 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->transfer_referenceId(apdu_request, apdu_response); s->send_Z_PDU(apdu_response); return 1; } -#endif \ No newline at end of file +#endif