aboutsummaryrefslogtreecommitdiffstats
path: root/ldns/update.h
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2017-02-03 13:01:00 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2017-02-03 13:01:00 +0000
commitc6342fe2e90510d8d2296423f2ca92818a7b3d18 (patch)
tree0cc9064980c804a7bf5cc6d96c9249950c7e56a9 /ldns/update.h
parent65be028f32ed37dce84f6328d4a7172132c8c224 (diff)
downloadsrc-vendor/ldns.tar.gz
src-vendor/ldns.zip
Notes
Notes: svn path=/vendor/ldns/dist/; revision=313156 svn path=/vendor/ldns/1.7.0/; revision=313157; tag=vendor/ldns/1.7.0
Diffstat (limited to 'ldns/update.h')
-rw-r--r--ldns/update.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ldns/update.h b/ldns/update.h
index d3459d325e3f..414aff73c07e 100644
--- a/ldns/update.h
+++ b/ldns/update.h
@@ -27,13 +27,14 @@ extern "C" {
/**
* create an update packet from zone name, class and the rr lists
* \param[in] zone_rdf name of the zone
+ * The returned packet will take ownership of zone_rdf, so the caller should not free it
* \param[in] clas zone class
* \param[in] pr_rrlist list of Prerequisite Section RRs
* \param[in] up_rrlist list of Updates Section RRs
* \param[in] ad_rrlist list of Additional Data Section RRs (currently unused)
* \return the new packet
*/
-ldns_pkt *ldns_update_pkt_new(ldns_rdf *zone_rdf, ldns_rr_class clas, ldns_rr_list *pr_rrlist, ldns_rr_list *up_rrlist, ldns_rr_list *ad_rrlist);
+ldns_pkt *ldns_update_pkt_new(ldns_rdf *zone_rdf, ldns_rr_class clas, const ldns_rr_list *pr_rrlist, const ldns_rr_list *up_rrlist, const ldns_rr_list *ad_rrlist);
/**
* add tsig credentials to
@@ -43,7 +44,7 @@ ldns_pkt *ldns_update_pkt_new(ldns_rdf *zone_rdf, ldns_rr_class clas, ldns_rr_li
*
* \return status wether successfull or not
*/
-ldns_status ldns_update_pkt_tsig_add(ldns_pkt *p, ldns_resolver *r);
+ldns_status ldns_update_pkt_tsig_add(ldns_pkt *p, const ldns_resolver *r);
/* access functions */