Introducing namespace yazpp_1 for all YAZ++ functions. This will
[yazpp-moved-to-github.git] / include / yaz++ / z-server.h
index df4acc8..335da7e 100644 (file)
@@ -2,11 +2,13 @@
  * Copyright (c) 2000-2001, Index Data.
  * See the file LICENSE for details.
  * 
- * $Id: z-server.h,v 1.3 2003-10-01 13:13:51 adam Exp $
+ * $Id: z-server.h,v 1.6 2005-06-02 06:40:21 adam Exp $
  */
 
 #include <yaz++/z-assoc.h>
 
+namespace yazpp_1 {
+
 class Yaz_Z_Server;
 
 class YAZ_EXPORT Yaz_Z_ServerUtility {
@@ -119,7 +121,8 @@ class YAZ_EXPORT Yaz_Z_Server : public Yaz_Z_Assoc {
 public:
     Yaz_Z_Server(IYaz_PDU_Observable *the_PDU_Observable);
     virtual ~Yaz_Z_Server();
-    virtual void recv_Z_PDU(Z_APDU *apdu, int len);
+    void recv_Z_PDU(Z_APDU *apdu, int len);
+    virtual void recv_GDU(Z_GDU *apdu, int len);
     void facility_add(IYaz_Server_Facility *facility, const char *name);
     void facility_reset ();
 
@@ -130,5 +133,6 @@ public:
 
 class YAZ_EXPORT Yaz_USMARC {
  public:
-    const char *get_record(int position);
+    const char *get_record(size_t position);
+};
 };