Named routes for filter virt_db. Example in etc/config2.xml
[metaproxy-moved-to-github.git] / src / filter_virt_db.hpp
index 8c514f6..7ce5dce 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: filter_virt_db.hpp,v 1.4 2005-10-31 09:40:18 marc Exp $
+/* $Id: filter_virt_db.hpp,v 1.8 2006-01-11 11:51:50 adam Exp $
    Copyright (c) 2005, Index Data.
 
 %LICENSE%
@@ -21,13 +21,19 @@ namespace yp2 {
             ~Virt_db();
             Virt_db();
             void process(yp2::Package & package) const;
-            void add_map_db2vhost(std::string db, std::string vhost);
+            void configure(const xmlNode * ptr);
+            void add_map_db2vhost(std::string db, std::string vhost,
+                                  std::string route);
         private:
             boost::scoped_ptr<Rep> m_p;
         };
     }
 }
 
+extern "C" {
+    extern struct yp2_filter_struct yp2_filter_virt_db;
+}
+
 #endif
 /*
  * Local variables: