Merge from vendor branch BINUTILS:
[dragonfly.git] / contrib / bind-9.2.4rc7 / bin / named / include / named / zoneconf.h
1 /*
2  * Copyright (C) 2004  Internet Systems Consortium, Inc. ("ISC")
3  * Copyright (C) 1999-2002  Internet Software Consortium.
4  *
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.
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: zoneconf.h,v 1.16.2.3 2004/03/09 06:09:23 marka Exp $ */
19
20 #ifndef NS_ZONECONF_H
21 #define NS_ZONECONF_H 1
22
23 #include <isc/lang.h>
24 #include <isc/types.h>
25
26 #include <isccfg/cfg.h>
27
28 #include <named/aclconf.h>
29
30 ISC_LANG_BEGINDECLS
31
32 isc_result_t
33 ns_zone_configure(cfg_obj_t *config, cfg_obj_t *vconfig, cfg_obj_t *zconfig,
34                   ns_aclconfctx_t *ac, dns_zone_t *zone);
35 /*
36  * Configure or reconfigure a zone according to the named.conf
37  * data in 'cctx' and 'czone'.
38  *
39  * The zone origin is not configured, it is assumed to have been set
40  * at zone creation time.
41  *
42  * Require:
43  *      'lctx' to be initialized or NULL.
44  *      'cctx' to be initialized or NULL.
45  *      'ac' to point to an initialized ns_aclconfctx_t.
46  *      'czone' to be initialized.
47  *      'zone' to be initialized.
48  */
49
50 isc_boolean_t
51 ns_zone_reusable(dns_zone_t *zone, cfg_obj_t *zconfig);
52 /*
53  * If 'zone' can be safely reconfigured according to the configuration
54  * data in 'zconfig', return ISC_TRUE.  If the configuration data is so
55  * different from the current zone state that the zone needs to be destroyed
56  * and recreated, return ISC_FALSE.
57  */
58
59 ISC_LANG_ENDDECLS
60
61 #endif /* NS_ZONECONF_H */