]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
document packet push functions
authorMiek Gieben <miekg@NLnetLabs.nl>
Thu, 26 Jan 2006 13:14:47 +0000 (13:14 +0000)
committerMiek Gieben <miekg@NLnetLabs.nl>
Thu, 26 Jan 2006 13:14:47 +0000 (13:14 +0000)
Changelog
ldns/packet.h

index f237368d99a8ed861bde9aa7c55c2a58b24b9f75..27211e4cafba9b7512e429bedf2fb2e7db6978d1 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -38,7 +38,7 @@
           o ldns_rr_new_frm_fp
          o ldns_rr_new_frm_fp_l
          Which also get an extra variable
-       * tsig.h: made internal used functions static:
+       * tsig.h: internal used functions are now static:
          ldns_digest_name and ldns_tsig_mac_new
        New:
        * ldns_resolver_searchlist_count: return the searchlist counter
index 3633b8b0260b5f17008e03bc4fde2e05120a07a8..7ca614c6dac12c18a3683dfc256562849f360a2a 100644 (file)
@@ -646,6 +646,24 @@ void ldns_pkt_set_question(ldns_pkt *p, ldns_rr_list *rr);
  */
 void ldns_pkt_set_authority(ldns_pkt *p, ldns_rr_list *rr);
 
+/**
+ * push an rr on a packet
+ * \param[in] packet packet to operatore on
+ * \param[in] section where to put it
+ * \param[in] rr rr to push
+ * \return ldns_status status
+ */
+bool ldns_pkt_push_rr(ldns_pkt *packet, ldns_pkt_section section, ldns_rr *rr);
+
+/**
+ * push an rr on a packet, provided the RR is not there.
+ * \param[in] pkt packet to operatore on
+ * \param[in] sec where to put it
+ * \param[in] rr rr to push
+ * \return ldns_status status
+ */
+bool ldns_pkt_safe_push_rr(ldns_pkt *pkt, ldns_pkt_section sec, ldns_rr *rr);
+
 /* lua helper stuff KEEP THIS?? NO/YES */
 /**  TODO or remove */
 ldns_rr * ldns_pkt_get_rr(ldns_pkt *p, uint16_t n);