Add BIND 9.2.4rc7.
[dragonfly.git] / contrib / bind-9.2.4rc7 / bin / named / include / named / config.h
blob3d97be62c77a370701a6312e52141b291a8acde6
1 /*
2 * Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 2001 Internet Software Consortium.
5 * Permission to use, copy, modify, and 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.
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.
18 /* $Id: config.h,v 1.4.2.1 2004/03/09 06:09:21 marka Exp $ */
20 #ifndef NAMED_CONFIG_H
21 #define NAMED_CONFIG_H 1
23 #include <isccfg/cfg.h>
25 #include <dns/types.h>
26 #include <dns/zone.h>
28 isc_result_t
29 ns_config_parsedefaults(cfg_parser_t *parser, cfg_obj_t **conf);
31 isc_result_t
32 ns_config_get(cfg_obj_t **maps, const char* name, cfg_obj_t **obj);
34 int
35 ns_config_listcount(cfg_obj_t *list);
37 isc_result_t
38 ns_config_getclass(cfg_obj_t *classobj, dns_rdataclass_t defclass,
39 dns_rdataclass_t *classp);
41 dns_zonetype_t
42 ns_config_getzonetype(cfg_obj_t *zonetypeobj);
44 isc_result_t
45 ns_config_getiplist(cfg_obj_t *config, cfg_obj_t *list,
46 in_port_t defport, isc_mem_t *mctx,
47 isc_sockaddr_t **addrsp, isc_uint32_t *countp);
49 void
50 ns_config_putiplist(isc_mem_t *mctx, isc_sockaddr_t **addrsp,
51 isc_uint32_t count);
53 isc_result_t
54 ns_config_getipandkeylist(cfg_obj_t *config, cfg_obj_t *list, isc_mem_t *mctx,
55 isc_sockaddr_t **addrsp, dns_name_t ***keys,
56 isc_uint32_t *countp);
58 void
59 ns_config_putipandkeylist(isc_mem_t *mctx, isc_sockaddr_t **addrsp,
60 dns_name_t ***keys, isc_uint32_t count);
62 isc_result_t
63 ns_config_getport(cfg_obj_t *config, in_port_t *portp);
65 isc_result_t
66 ns_config_getkeyalgorithm(const char *str, dns_name_t **name);
68 #endif /* NAMED_CONFIG_H */