bind - Upgraded vendor branch to 9.5.2-P1
[dragonfly.git] / contrib / bind-9.5.2 / lib / dns / rdatalist_p.h
1 /*
2  * Copyright (C) 2004, 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
3  * Copyright (C) 2000, 2001  Internet Software Consortium.
4  *
5  * Permission to use, copy, modify, and/or distribute this software for any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15  * PERFORMANCE OF THIS SOFTWARE.
16  */
17
18 /* $Id: rdatalist_p.h,v 1.9 2007/06/19 23:47:16 tbox Exp $ */
19
20 #ifndef DNS_RDATALIST_P_H
21 #define DNS_RDATALIST_P_H
22
23 /*! \file */
24
25 #include <isc/result.h>
26 #include <dns/types.h>
27
28 ISC_LANG_BEGINDECLS
29
30 void
31 isc__rdatalist_disassociate(dns_rdataset_t *rdatasetp);
32
33 isc_result_t
34 isc__rdatalist_first(dns_rdataset_t *rdataset);
35
36 isc_result_t
37 isc__rdatalist_next(dns_rdataset_t *rdataset);
38
39 void
40 isc__rdatalist_current(dns_rdataset_t *rdataset, dns_rdata_t *rdata);
41
42 void
43 isc__rdatalist_clone(dns_rdataset_t *source, dns_rdataset_t *target);
44
45 unsigned int
46 isc__rdatalist_count(dns_rdataset_t *rdataset);
47
48 isc_result_t
49 isc__rdatalist_addnoqname(dns_rdataset_t *rdataset, dns_name_t *name);
50
51 isc_result_t
52 isc__rdatalist_getnoqname(dns_rdataset_t *rdataset, dns_name_t *name,
53                           dns_rdataset_t *nsec, dns_rdataset_t *nsecsig);
54
55 ISC_LANG_ENDDECLS
56
57 #endif /* DNS_RDATALIST_P_H */