Advertisement
Guest User

restbackend.hh

a guest
Jan 31st, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1. #ifndef RESTBACKEND_HH
  2. #define RESTBACKEND_HH
  3.  
  4. #include <string>
  5. #include <map>
  6. #include <sys/types.h>
  7. #include <regex.h>
  8. #include <boost/shared_ptr.hpp>
  9.  
  10. #include "pdns/namespaces.hh"
  11.  
  12. class RestBackend: public DNSBackend {
  13. public:
  14.     RestBackend(const string &suffix);
  15.     bool list(const string &target, int domain_id);
  16.     void lookup(const QType &type, const string &qdomain, DNSPacket *p,
  17.             int zoneId);
  18.     bool get(DNSResourceRecord &rr);
  19.  
  20. private:
  21.     string d_answer;
  22. };
  23.  
  24. class RestFactory: public BackendFactory {
  25. public:
  26.     RestFactory();
  27.     DNSBackend *make(const string &suffix);
  28. };
  29.  
  30. class RestLoader {
  31. public:
  32.     RestLoader();
  33. };
  34.  
  35. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement