Introducing namespace yazpp_1 for all YAZ++ functions. This will
[yazpp-moved-to-github.git] / include / yaz++ / socket-observer.h
index 3644893..b4291aa 100644 (file)
@@ -2,7 +2,7 @@
  * Copyright (c) 1998-2000, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: socket-observer.h,v 1.1 2002-10-09 12:50:26 adam Exp $
+ * $Id: socket-observer.h,v 1.4 2005-06-02 06:40:21 adam Exp $
  */
 
 #ifndef YAZ_SOCKET_OBSERVER_H
 #define YAZ_SOCKET_OBSERVE_EXCEPT 4
 #define YAZ_SOCKET_OBSERVE_TIMEOUT 8
 
+#include <yaz/yconfig.h>
+
+namespace yazpp_1 {
+
 /**
    Forward reference
  */
@@ -47,7 +51,7 @@ class YAZ_EXPORT IYazSocketObservable {
     virtual void maskObserver(IYazSocketObserver *observer, int mask) = 0;
     /// Specify timeout
     virtual void timeoutObserver(IYazSocketObserver *observer,
-                                unsigned timeout)=0;
+                                int timeout)=0;
 };
 
 /** Socket Observer.
@@ -61,4 +65,5 @@ class YAZ_EXPORT IYazSocketObserver {
     virtual void socketNotify(int event) = 0;
 };
 
+};
 #endif