[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r4071 - trunk/OpenDNSSEC/signer/src/signer

Matthijs Mekking matthijs at nlnetlabs.nl
Thu Oct 7 16:22:30 CEST 2010


Author: matthijs
Date: 2010-10-07 16:22:29 +0200 (Thu, 07 Oct 2010)
New Revision: 4071

Modified:
   trunk/OpenDNSSEC/signer/src/signer/rrset.c
   trunk/OpenDNSSEC/signer/src/signer/rrset.h
Log:
function to calculate #RRs after an update



Modified: trunk/OpenDNSSEC/signer/src/signer/rrset.c
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/rrset.c	2010-10-07 14:15:24 UTC (rev 4070)
+++ trunk/OpenDNSSEC/signer/src/signer/rrset.c	2010-10-07 14:22:29 UTC (rev 4071)
@@ -358,6 +358,7 @@
     return rrset->rr_count;
 }
 
+
 /**
  * Return the number of pending added RRs in RRset.
  *
@@ -369,6 +370,7 @@
     return rrset->add_count;
 }
 
+
 /**
  * Return the number of pending deleted RRs in RRset.
  *
@@ -382,6 +384,18 @@
 
 
 /**
+ * Return the number of RRs in RRset after an update.
+ *
+ */
+int
+rrset_count_RR(rrset_type* rrset)
+{
+    se_log_assert(rrset);
+    return ((rrset->rr_count + rrset->add_count) - rrset->del_count);
+}
+
+
+/**
  * Add RR to RRset.
  *
  */

Modified: trunk/OpenDNSSEC/signer/src/signer/rrset.h
===================================================================
--- trunk/OpenDNSSEC/signer/src/signer/rrset.h	2010-10-07 14:15:24 UTC (rev 4070)
+++ trunk/OpenDNSSEC/signer/src/signer/rrset.h	2010-10-07 14:22:29 UTC (rev 4071)
@@ -170,6 +170,14 @@
 int rrset_count_del(rrset_type* rrset);
 
 /**
+ * Return the number of RRs in RRset after an update.
+ * \param[in] rrset RRset
+ * \return number of RRs after an update
+ *
+ */
+int rrset_count_RR(rrset_type* rrset);
+
+/**
  * Clean up RRset.
  * \param[in] rrset RRset to be cleaned up
  *




More information about the Opendnssec-commits mailing list