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
Remove this test. Rewrite will is gonna be different
[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
9e2991e
..
0ae5b26
100644
(file)
--- a/
src/filter_virt_db.hpp
+++ b/
src/filter_virt_db.hpp
@@
-1,4
+1,4
@@
-/* $Id: filter_virt_db.hpp,v 1.5 2006-01-04 11:19:04 adam Exp $
+/* $Id: filter_virt_db.hpp,v 1.14 2006-02-02 11:33:46 adam Exp $
Copyright (c) 2005, Index Data.
%LICENSE%
Copyright (c) 2005, Index Data.
%LICENSE%
@@
-10,6
+10,7
@@
#include <stdexcept>
#include <list>
#include <boost/scoped_ptr.hpp>
#include <stdexcept>
#include <list>
#include <boost/scoped_ptr.hpp>
+#include <boost/shared_ptr.hpp>
#include "filter.hpp"
#include "filter.hpp"
@@
-17,11
+18,23
@@
namespace yp2 {
namespace filter {
class Virt_db : public Base {
class Rep;
namespace filter {
class Virt_db : public Base {
class Rep;
+ 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();
void process(yp2::Package & package) const;
public:
~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_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;
};
@@
-29,7
+42,7
@@
namespace yp2 {
}
extern "C" {
}
extern "C" {
- extern const struct yp2_filter_struct yp2_filter_virt_db;
+ extern struct yp2_filter_struct yp2_filter_virt_db;
}
#endif
}
#endif