Move to automake 1.8/1.9
[yazpp-moved-to-github.git] / include / yaz++ / pdu-observer.h
index bdb6b87..965ffee 100644 (file)
@@ -2,12 +2,14 @@
  * Copyright (c) 1998-2005, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: pdu-observer.h,v 1.6 2005-06-08 13:28:05 adam Exp $
+ * $Id: pdu-observer.h,v 1.9 2005-09-23 13:11:04 adam Exp $
  */
 
 #ifndef YAZ_PDU_OBSERVER_H
 #define YAZ_PDU_OBSERVER_H
 
+#include <yaz/yconfig.h>
+
 namespace yazpp_1 {
 
 class IPDU_Observer;
@@ -36,6 +38,8 @@ class YAZ_EXPORT IPDU_Observable {
     virtual void idleTime (int timeout) = 0;
     /// Get peername
     virtual const char *getpeername() = 0;
+
+    virtual ~IPDU_Observable();
 };
 
 /** Protocol Data Unit Observer.
@@ -54,8 +58,18 @@ class YAZ_EXPORT IPDU_Observer {
     virtual void timeoutNotify() = 0;
     /// Make clone of observer using IPDU_Observable interface
     virtual IPDU_Observer *sessionNotify(
-       IPDU_Observable *the_PDU_Observable, int fd) = 0;
+        IPDU_Observable *the_PDU_Observable, int fd) = 0;
+
+    virtual ~IPDU_Observer();
 };
 };
 
 #endif
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */
+