Introducing namespace yazpp_1 for all YAZ++ functions. This will
[yazpp-moved-to-github.git] / src / yaz-z-server-ill.cpp
index 3c42fb7..4022006 100644 (file)
@@ -1,13 +1,15 @@
 /*
- * Copyright (c) 2000-2001, Index Data.
+ * Copyright (c) 2000-2004, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: yaz-z-server-ill.cpp,v 1.8 2002-10-09 12:50:26 adam Exp $
+ * $Id: yaz-z-server-ill.cpp,v 1.12 2005-06-02 06:40:21 adam Exp $
  */
 
 #include <yaz/log.h>
 #include <yaz++/z-server.h>
 
+using namespace yazpp_1;
+
 int Yaz_Facility_ILL::init(Yaz_Z_Server *s, Z_InitRequest *initRequest,
                           Z_InitResponse *initResponse)
 {
@@ -29,11 +31,11 @@ int Yaz_Facility_ILL::recv(Yaz_Z_Server *s, Z_APDU *apdu_request)
     if (!req->taskSpecificParameters || req->taskSpecificParameters->which !=
         Z_External_itemOrder)
         return 0;
-    yaz_log (LOG_LOG, "got ill p=%p", this);
+    yaz_log (YLOG_LOG, "got ill p=%p", this);
     apdu_response = s->create_Z_PDU(Z_APDU_extendedServicesResponse);
     ill_service(req, req->taskSpecificParameters->u.itemOrder,
         apdu_response->u.extendedServicesResponse);
     s->transfer_referenceId(apdu_request, apdu_response);
-    s->send_Z_PDU(apdu_response);
+    s->send_Z_PDU(apdu_response, 0);
     return 1;
 }