Make public yp2_filter_struct non-const. If not, the linker symbol
[metaproxy-moved-to-github.git] / src / filter_virt_db.hpp
index e33b74e..d5065b5 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: filter_virt_db.hpp,v 1.3 2005-10-29 22:23:36 marc Exp $
+/* $Id: filter_virt_db.hpp,v 1.6 2006-01-04 11:55:32 adam Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -21,9 +21,6 @@ namespace yp2 {
             ~Virt_db();
             Virt_db();
             void process(yp2::Package & package) const;
-            const std::string type() const {
-                return "Virt_db";
-            };
             void add_map_db2vhost(std::string db, std::string vhost);
         private:
             boost::scoped_ptr<Rep> m_p;
@@ -31,6 +28,10 @@ namespace yp2 {
     }
 }
 
+extern "C" {
+    extern struct yp2_filter_struct yp2_filter_virt_db;
+}
+
 #endif
 /*
  * Local variables: