Browse Source

Change the interface of genRRset

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/trac449@4142 e5f2f494-b856-4b98-b285-d166d9295462
Likun Zhang 14 years ago
parent
commit
8eafc24514
2 changed files with 3 additions and 3 deletions
  1. 2 2
      src/lib/cache/rrset_entry.cc
  2. 1 1
      src/lib/cache/rrset_entry.h

+ 2 - 2
src/lib/cache/rrset_entry.cc

@@ -29,8 +29,8 @@ RRsetEntry::RRsetEntry(const isc::dns::RRset&,
 {
 }
 
-void
-RRsetEntry::genRRset(isc::dns::RRset&) const {
+boost::shared_ptr<RRset>
+RRsetEntry::genRRset() const {
 }
 
 time_t

+ 1 - 1
src/lib/cache/rrset_entry.h

@@ -67,7 +67,7 @@ public:
     RRsetEntry(const isc::dns::RRset& rrset, const RRsetTrustLevel& level);
 
     /// \brief Generate one rrset according the entry information.
-    void genRRset(isc::dns::RRset& rrset) const;
+    boost::shared_ptr<RRset> genRRset() const;
     
     /// \brief Get the expiration time of the rrset.
     time_t getExpireTime() const;