Browse Source

Interface of MemoryZone::add

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac447@3956 e5f2f494-b856-4b98-b285-d166d9295462
Michal Vaner 14 years ago
parent
commit
6121f4b09e
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/lib/datasrc/memory_datasrc.h

+ 14 - 0
src/lib/datasrc/memory_datasrc.h

@@ -61,6 +61,20 @@ public:
     virtual FindResult find(const isc::dns::Name& name,
                             const isc::dns::RRType& type) const;
 
+    result::Result add(const isc::dns::ConstRRsetPtr& rrset);
+
+    struct OutOfZone : public InvalidParameter {
+        OutOfZone(const char* file, size_t line, const char* what) :
+            InvalidParameter(file, line, what)
+        { }
+    };
+
+    struct NullRRset : public InvalidParameter {
+        NullRRset(const char* file, size_t line, const char* what) :
+            InvalidParameter(file, line, what)
+        { }
+    };
+
 private:
     /// \name Hidden private data
     //@{