PageRenderTime 35ms CodeModel.GetById 22ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/contrib/bind9/lib/dns/rdatalist_p.h

https://bitbucket.org/freebsd/freebsd-head/
C++ Header | 64 lines | 29 code | 17 blank | 18 comment | 0 complexity | 1ba4e9837bb6ade9c930ef1e6ed36e1f MD5 | raw file
 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
28ISC_LANG_BEGINDECLS
29
30void
31isc__rdatalist_disassociate(dns_rdataset_t *rdatasetp);
32
33isc_result_t
34isc__rdatalist_first(dns_rdataset_t *rdataset);
35
36isc_result_t
37isc__rdatalist_next(dns_rdataset_t *rdataset);
38
39void
40isc__rdatalist_current(dns_rdataset_t *rdataset, dns_rdata_t *rdata);
41
42void
43isc__rdatalist_clone(dns_rdataset_t *source, dns_rdataset_t *target);
44
45unsigned int
46isc__rdatalist_count(dns_rdataset_t *rdataset);
47
48isc_result_t
49isc__rdatalist_addnoqname(dns_rdataset_t *rdataset, dns_name_t *name);
50
51isc_result_t
52isc__rdatalist_getnoqname(dns_rdataset_t *rdataset, dns_name_t *name,
53			  dns_rdataset_t *neg, dns_rdataset_t *negsig);
54
55isc_result_t
56isc__rdatalist_addclosest(dns_rdataset_t *rdataset, dns_name_t *name);
57
58isc_result_t
59isc__rdatalist_getclosest(dns_rdataset_t *rdataset, dns_name_t *name,
60			  dns_rdataset_t *neg, dns_rdataset_t *negsig);
61
62ISC_LANG_ENDDECLS
63
64#endif /* DNS_RDATALIST_P_H */