Make public yp2_filter_struct non-const. If not, the linker symbol
[metaproxy-moved-to-github.git] / src / filter_z3950_client.hpp
index b55dd37..70b64ac 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: filter_z3950_client.hpp,v 1.3 2005-10-29 22:23:36 marc Exp $
+/* $Id: filter_z3950_client.hpp,v 1.7 2006-01-04 11:55:32 adam Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -7,8 +7,6 @@
 #ifndef FILTER_Z3950_CLIENT_HPP
 #define FILTER_Z3950_CLIENT_HPP
 
-#include <stdexcept>
-#include <list>
 #include <boost/scoped_ptr.hpp>
 
 #include "filter.hpp"
@@ -22,15 +20,16 @@ namespace yp2 {
             ~Z3950Client();
             Z3950Client();
             void process(yp2::Package & package) const;
-            const std::string type() const {
-                return "Z3950Client";
-            };
         private:
             boost::scoped_ptr<Rep> m_p;
         };
     }
 }
 
+extern "C" {
+    extern struct yp2_filter_struct yp2_filter_z3950_client;
+}
+
 #endif
 /*
  * Local variables: