/* This file is part of Metaproxy.
- Copyright (C) 2005-2008 Index Data
+ Copyright (C) 2005-2011 Index Data
Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "config.hpp"
+
#include <libxml/parser.h>
#include <libxml/tree.h>
-#include "config.hpp"
-#include "filter.hpp"
+#include <metaproxy/filter.hpp>
#include "router_chain.hpp"
-#include "package.hpp"
+#include <metaproxy/package.hpp>
#include <iostream>
void process(mp::Package & package) const {
package.move();
};
- void configure(const xmlNode* ptr, bool test_only);
+ void configure(const xmlNode* ptr, bool test_only, const char *path);
int get_constant() const { return m_constant; };
private:
const xmlNode *m_ptr;
};
-void FilterConstant::configure(const xmlNode* ptr, bool test_only)
+void FilterConstant::configure(const xmlNode* ptr, bool test_only,
+ const char *path)
{
m_ptr = ptr;
void process(mp::Package & package) const {
package.move();
};
+ void configure(const xmlNode * ptr, bool test_only,
+ const char *path) { };
};
{
xmlNodePtr root_element = xmlDocGetRootElement(doc);
- base->configure(root_element, true);
+ base->configure(root_element, true, 0);
xmlFreeDoc(doc);
}