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