Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef RESTBACKEND_HH
- #define RESTBACKEND_HH
- #include <string>
- #include <map>
- #include <sys/types.h>
- #include <regex.h>
- #include <boost/shared_ptr.hpp>
- #include "pdns/namespaces.hh"
- class RestBackend: public DNSBackend {
- public:
- RestBackend(const string &suffix);
- bool list(const string &target, int domain_id);
- void lookup(const QType &type, const string &qdomain, DNSPacket *p,
- int zoneId);
- bool get(DNSResourceRecord &rr);
- private:
- string d_answer;
- };
- class RestFactory: public BackendFactory {
- public:
- RestFactory();
- DNSBackend *make(const string &suffix);
- };
- class RestLoader {
- public:
- RestLoader();
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement