projects
/
metaproxy-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed bug #645: Filter Frontend_net must set proper Origin value.
[metaproxy-moved-to-github.git]
/
src
/
filter_virt_db.hpp
diff --git
a/src/filter_virt_db.hpp
b/src/filter_virt_db.hpp
index
bbbfd71
..
766d61e
100644
(file)
--- a/
src/filter_virt_db.hpp
+++ b/
src/filter_virt_db.hpp
@@
-1,7
+1,7
@@
-/* $Id: filter_virt_db.hpp,v 1.11 2006-01-14 08:38:57 adam Exp $
- Copyright (c) 2005, Index Data.
+/* $Id: filter_virt_db.hpp,v 1.16 2006-06-10 14:29:12 adam Exp $
+ Copyright (c) 2005-2006, Index Data.
-%LICENSE%
+ See the LICENSE file for details
*/
#ifndef FILTER_VIRT_DB_HPP
*/
#ifndef FILTER_VIRT_DB_HPP
@@
-14,23
+14,27
@@
#include "filter.hpp"
#include "filter.hpp"
-namespace yp2 {
+namespace metaproxy_1 {
namespace filter {
class Virt_db : public Base {
class Rep;
namespace filter {
class Virt_db : public Base {
class Rep;
- class Frontend;
- class Map;
- class Set;
- class Backend;
- typedef boost::shared_ptr<Virt_db::Backend> BackendPtr;
- typedef boost::shared_ptr<Virt_db::Frontend> FrontendPtr;
+ struct Frontend;
+ struct Map;
+ struct Set;
+ struct Backend;
+ typedef boost::shared_ptr<Backend> BackendPtr;
+ typedef boost::shared_ptr<Frontend> FrontendPtr;
public:
~Virt_db();
Virt_db();
public:
~Virt_db();
Virt_db();
- void process(yp2::Package & package) const;
+ void process(metaproxy_1::Package & package) const;
void configure(const xmlNode * ptr);
void configure(const xmlNode * ptr);
- void add_map_db2vhost(std::string db, std::string vhost,
- std::string route);
+ void add_map_db2targets(std::string db,
+ std::list<std::string> targets,
+ std::string route);
+ void add_map_db2target(std::string db,
+ std::string target,
+ std::string route);
private:
boost::scoped_ptr<Rep> m_p;
};
private:
boost::scoped_ptr<Rep> m_p;
};
@@
-38,7
+42,7
@@
namespace yp2 {
}
extern "C" {
}
extern "C" {
- extern struct yp2_filter_struct yp2_filter_virt_db;
+ extern struct metaproxy_1_filter_struct metaproxy_1_filter_virt_db;
}
#endif
}
#endif