All filters declare a yp2_filter_struct - used for both static and
[metaproxy-moved-to-github.git] / src / filter_virt_db.hpp
index cd06081..9e2991e 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: filter_virt_db.hpp,v 1.1 2005-10-24 14:33:30 adam Exp $
+/* $Id: filter_virt_db.hpp,v 1.5 2006-01-04 11:19:04 adam Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -9,6 +9,7 @@
 
 #include <stdexcept>
 #include <list>
+#include <boost/scoped_ptr.hpp>
 
 #include "filter.hpp"
 
@@ -22,11 +23,15 @@ namespace yp2 {
             void process(yp2::Package & package) const;
             void add_map_db2vhost(std::string db, std::string vhost);
         private:
-            Rep *m_p;
+            boost::scoped_ptr<Rep> m_p;
         };
     }
 }
 
+extern "C" {
+    extern const struct yp2_filter_struct yp2_filter_virt_db;
+}
+
 #endif
 /*
  * Local variables: