Removed ursula dependancy.
[yazpp-moved-to-github.git] / src / yaz-my-server.cpp
index a9aeb0a..30c68cd 100644 (file)
@@ -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());