added first shot on load balance filter which removes all but one vhost from Z39...
[metaproxy-moved-to-github.git] / src / filter_load_balance.hpp
diff --git a/src/filter_load_balance.hpp b/src/filter_load_balance.hpp
new file mode 100644 (file)
index 0000000..0ede931
--- /dev/null
@@ -0,0 +1,41 @@
+/* $Id: filter_load_balance.hpp,v 1.1 2007-01-02 15:35:36 marc Exp $
+   Copyright (c) 2005-2006, Index Data.
+
+   See the LICENSE file for details
+ */
+
+// Filter that does nothing. Use as load_balance for new filters 
+#ifndef FILTER_LOAD_BALANCE_HPP
+#define FILTER_LOAD_BALANCE_HPP
+
+#include <boost/scoped_ptr.hpp>
+
+#include "filter.hpp"
+
+namespace metaproxy_1 {
+    namespace filter {
+        class LoadBalance : public Base {
+            class Impl;
+            boost::scoped_ptr<Impl> m_p;
+        public:
+            LoadBalance();
+            ~LoadBalance();
+            void process(metaproxy_1::Package & package) const;
+            void configure(const xmlNode * ptr);
+        };
+    }
+}
+
+extern "C" {
+    extern struct metaproxy_1_filter_struct metaproxy_1_filter_load_balance;
+}
+
+#endif
+/*
+ * Local variables:
+ * c-basic-offset: 4
+ * indent-tabs-mode: nil
+ * c-file-style: "stroustrup"
+ * End:
+ * vim: shiftwidth=4 tabstop=8 expandtab
+ */