projects
/
yazpp-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Happy new year
[yazpp-moved-to-github.git]
/
src
/
yaz-z-server-ill.cpp
diff --git
a/src/yaz-z-server-ill.cpp
b/src/yaz-z-server-ill.cpp
index
4022006
..
238e4ad
100644
(file)
--- a/
src/yaz-z-server-ill.cpp
+++ b/
src/yaz-z-server-ill.cpp
@@
-1,32
+1,33
@@
-/*
- * Copyright (c) 2000-2004, Index Data.
+/* This file is part of the yazpp toolkit.
+ * Copyright (C) Index Data and Mike Taylor
* See the file LICENSE for details.
* See the file LICENSE for details.
- *
- * $Id: yaz-z-server-ill.cpp,v 1.12 2005-06-02 06:40:21 adam Exp $
*/
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <yaz/log.h>
#include <yaz/log.h>
-#include <yaz++/z-server.h>
+#include <yazpp/z-server.h>
using namespace yazpp_1;
using namespace yazpp_1;
-int Yaz_Facility_ILL::init(Yaz_Z_Server *s, Z_InitRequest *initRequest,
- Z_InitResponse *initResponse)
+int Yaz_Facility_ILL::init(Z_Server *s, Z_InitRequest *initRequest,
+ Z_InitResponse *initResponse)
{
Z_Options *req = initRequest->options;
Z_Options *res = initResponse->options;
{
Z_Options *req = initRequest->options;
Z_Options *res = initResponse->options;
-
+
if (ODR_MASK_GET(req, Z_Options_extendedServices))
if (ODR_MASK_GET(req, Z_Options_extendedServices))
- ODR_MASK_SET(res, Z_Options_extendedServices);
+ ODR_MASK_SET(res, Z_Options_extendedServices);
return 1;
}
return 1;
}
-int Yaz_Facility_ILL::recv(Yaz_Z_Server *s, Z_APDU *apdu_request)
-{
+int Yaz_Facility_ILL::recv(Z_Server *s, Z_APDU *apdu_request)
+{
Z_APDU *apdu_response;
if (apdu_request->which != Z_APDU_extendedServicesRequest)
Z_APDU *apdu_response;
if (apdu_request->which != Z_APDU_extendedServicesRequest)
- return 0;
+ return 0;
Z_ExtendedServicesRequest *req = apdu_request->u.extendedServicesRequest;
if (!req->taskSpecificParameters || req->taskSpecificParameters->which !=
Z_External_itemOrder)
Z_ExtendedServicesRequest *req = apdu_request->u.extendedServicesRequest;
if (!req->taskSpecificParameters || req->taskSpecificParameters->which !=
Z_External_itemOrder)
@@
-39,3
+40,12
@@
int Yaz_Facility_ILL::recv(Yaz_Z_Server *s, Z_APDU *apdu_request)
s->send_Z_PDU(apdu_response, 0);
return 1;
}
s->send_Z_PDU(apdu_response, 0);
return 1;
}
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * c-file-style: "Stroustrup"
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+