X-Git-Url: http://git.indexdata.com/?p=yazpp-moved-to-github.git;a=blobdiff_plain;f=src%2Fyaz-my-server.cpp;h=30c68cdaa446c97ea3ac8edc9f4a66ed25407abe;hp=a9aeb0ab6fe175cb3234b815ef3eecbd6cd049ac;hb=bd6d2417de1cb518dbc95a9808a9f46311dbc64c;hpb=f316729783fa2f94a64192e2c7970cbd631d7b60 diff --git a/src/yaz-my-server.cpp b/src/yaz-my-server.cpp index a9aeb0a..30c68cd 100644 --- a/src/yaz-my-server.cpp +++ b/src/yaz-my-server.cpp @@ -3,7 +3,10 @@ * See the file LICENSE for details. * * $Log: yaz-my-server.cpp,v $ - * Revision 1.3 2001-04-04 14:02:49 adam + * Revision 1.4 2001-04-05 13:09:44 adam + * Removed ursula dependancy. + * + * Revision 1.3 2001/04/04 14:02:49 adam * URSULA / Z-ruth service. * * Revision 1.2 2001/03/29 15:14:26 adam @@ -94,12 +97,14 @@ public: Z_Records *records); }; +#if HAVE_YAZ_URSULA_H class MyUrsula : public Yaz_Facility_Ursula { public: void ursula_service (Z_ExtendedServicesRequest *req, Z_UrsPDU *u, Z_ExtendedServicesResponse *res); }; +#endif class MyServer : public Yaz_Z_Server { public: @@ -114,7 +119,9 @@ public: private: MyRetrieval m_retrieval; MyILL m_ill; +#if HAVE_YAZ_URSULA_H MyUrsula m_ursula; +#endif int m_no; }; @@ -133,6 +140,7 @@ void MyILL::ill_service (Z_ExtendedServicesRequest *req, } +#if HAVE_YAZ_URSULA_H void MyUrsula::ursula_service (Z_ExtendedServicesRequest *req, Z_UrsPDU *u, Z_ExtendedServicesResponse *res) @@ -159,6 +167,7 @@ void MyUrsula::ursula_service (Z_ExtendedServicesRequest *req, break; } } +#endif int MyRetrieval::sr_init (Z_InitRequest *initRequest, Z_InitResponse *initResponse) @@ -220,7 +229,9 @@ IYaz_PDU_Observer *MyServer::sessionNotify( new_server->timeout(900); new_server->facility_add(&new_server->m_retrieval, "my sr"); new_server->facility_add(&new_server->m_ill, "my ill"); +#if HAVE_YAZ_URSULA_H new_server->facility_add(&new_server->m_ursula, "my ill"); +#endif new_server->set_APDU_log(get_APDU_log());