zoneconf.h 2.08 KB
Newer Older
1
/*
Bob Halley's avatar
Bob Halley committed
2
 * Copyright (C) 1999, 2000  Internet Software Consortium.
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 * 
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
 * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 * SOFTWARE.
 */

#ifndef NS_ZONECONF_H
#define NS_ZONECONF_H 1

Andreas Gustafsson's avatar
Andreas Gustafsson committed
21
#include <isc/log.h>
22
23
24
#include <isc/types.h>

#include <dns/acl.h>
25
26
#include <dns/aclconf.h>
#include <dns/confctx.h>
27
28
#include <dns/confacl.h>
#include <dns/confip.h>
29
#include <dns/confzone.h>
30

31
isc_result_t dns_zone_configure(dns_c_ctx_t *cctx, dns_aclconfctx_t *ac,
32
33
				dns_c_zone_t *czone, dns_zone_t *zone);
/*
34
 * Configure or reconfigure a zone according to the named.conf
35
 * data in 'cctx' and 'czone'.
36
37
38
 *
 * The zone origin is not configured, it is assumed to have been set
 * at zone creation time.
39
40
41
 *
 * Require:
 *	'lctx' to be initalised or NULL.
42
 *	'cctx' to be initalised or NULL.
43
44
45
46
47
 *	'ac' to point to an initialized ns_aclconfctx_t.
 *	'czone' to be initalised.
 *	'zone' to be initalised.
 */

48
49
50
51
52
53
54
55
isc_boolean_t
dns_zone_reusable(dns_zone_t *zone, dns_c_zone_t *czone);
/*
 * If 'zone' can be safely reconfigured according to the configuration
 * data in 'czone', return ISC_TRUE.  If the configuration data is so
 * different from the current zone state that the zone needs to be destroyed
 * and recreated, return ISC_FALSE.
 */
56

57
58
59
60
61
62
isc_result_t
dns_zonemgr_configure(dns_c_ctx_t *cctx, dns_zonemgr_t *zonemgr);
/*
 * Configure the zone manager according to the named.conf data
 * in 'cctx'.
 */
63
64
65
ISC_LANG_ENDDECLS

#endif /* NS_ZONECONF_H */