]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/bind9/lib/dns/rdatalist_p.h
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / bind9 / lib / dns / rdatalist_p.h
1 /*
2  * Copyright (C) 2004, 2005, 2007, 2008  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.11 2008/09/25 04:02:38 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 *neg, dns_rdataset_t *negsig);
54
55 isc_result_t
56 isc__rdatalist_addclosest(dns_rdataset_t *rdataset, dns_name_t *name);
57
58 isc_result_t
59 isc__rdatalist_getclosest(dns_rdataset_t *rdataset, dns_name_t *name,
60                           dns_rdataset_t *neg, dns_rdataset_t *negsig);
61
62 ISC_LANG_ENDDECLS
63
64 #endif /* DNS_RDATALIST_P_H */