update.h

Go to the documentation of this file.
00001 /*
00002  * update.h
00003  *
00004  * Functions for RFC 2136 Dynamic Update
00005  *
00006  * Copyright (c) 2005-2006, NLnet Labs. All rights reserved.
00007  *
00008  * See LICENSE for the license.
00009  */
00010 
00018 #ifndef LDNS_UPDATE_H
00019 #define LDNS_UPDATE_H
00020 
00021 #include <ldns/resolver.h>
00022 
00032 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);
00033 
00042 ldns_status ldns_update_pkt_tsig_add(ldns_pkt *p, ldns_resolver *r);
00043 
00044 /* access functions */
00045 
00051 uint16_t ldns_update_zocount(const ldns_pkt *p);
00057 uint16_t ldns_update_prcount(const ldns_pkt *p);
00063 uint16_t ldns_update_upcount(const ldns_pkt *p);
00069 uint16_t ldns_update_adcount(const ldns_pkt *p);
00075 void ldns_update_set_zocount(ldns_pkt *p, uint16_t c);
00081 void ldns_update_set_prcount(ldns_pkt *p, uint16_t c);
00087 void ldns_update_set_upcount(ldns_pkt *p, uint16_t c);
00093 void ldns_update_set_adcount(ldns_pkt *p, uint16_t c);
00094 
00095 /* soa functions that need to be configured */
00096 /*
00097  * Not sure if we want to keep these like this, therefore
00098  * not documented
00099  */
00100 ldns_status ldns_update_soa_mname(ldns_rdf *zone, ldns_resolver *r, ldns_rr_class class, ldns_rdf **mname);
00101 /* 
00102  * Not sure if we want to keep these like this, therefore
00103  * not documented
00104  */
00105 ldns_status ldns_update_soa_zone_mname(const char *fqdn, ldns_resolver *r, ldns_rr_class class, ldns_rdf **zone_rdf, ldns_rdf **mname_rdf);
00106 
00107 #endif  /* LDNS_UPDATE_H */

Generated on Sat Nov 10 01:55:04 2007 for ldns by  doxygen 1.5.2