X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-z-server-ill.cpp;h=7805b5e2471f12b99ce62d3abe363c31bc5b960c;hb=71cc5e5d95d48ec001af3130c10b99dc9d4664b3;hp=4a3a0a77622b9259500891a2130f5ab03a11a033;hpb=491fb0058392b83d1e44eaa7494e827f3530f3dd;p=yazpp-moved-to-github.git diff --git a/src/yaz-z-server-ill.cpp b/src/yaz-z-server-ill.cpp index 4a3a0a7..7805b5e 100644 --- a/src/yaz-z-server-ill.cpp +++ b/src/yaz-z-server-ill.cpp @@ -2,29 +2,31 @@ * Copyright (c) 2000-2004, Index Data. * See the file LICENSE for details. * - * $Id: yaz-z-server-ill.cpp,v 1.11 2004-12-13 20:50:54 adam Exp $ + * $Id: yaz-z-server-ill.cpp,v 1.15 2006-03-29 13:14:18 adam Exp $ */ #include -#include +#include -int Yaz_Facility_ILL::init(Yaz_Z_Server *s, Z_InitRequest *initRequest, - Z_InitResponse *initResponse) +using namespace yazpp_1; + +int Yaz_Facility_ILL::init(Z_Server *s, Z_InitRequest *initRequest, + Z_InitResponse *initResponse) { Z_Options *req = initRequest->options; Z_Options *res = initResponse->options; if (ODR_MASK_GET(req, Z_Options_extendedServices)) - ODR_MASK_SET(res, Z_Options_extendedServices); + ODR_MASK_SET(res, Z_Options_extendedServices); 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) - return 0; + return 0; Z_ExtendedServicesRequest *req = apdu_request->u.extendedServicesRequest; if (!req->taskSpecificParameters || req->taskSpecificParameters->which != Z_External_itemOrder) @@ -37,3 +39,11 @@ int Yaz_Facility_ILL::recv(Yaz_Z_Server *s, Z_APDU *apdu_request) s->send_Z_PDU(apdu_response, 0); return 1; } +/* + * Local variables: + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + * vim: shiftwidth=4 tabstop=8 expandtab + */ +