2 * Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 1999-2002 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: zoneconf.h,v 1.19.18.5 2006/03/02 00:37:21 marka Exp $ */
21 #define NS_ZONECONF_H 1
26 #include <isc/types.h>
28 #include <isccfg/aclconf.h>
29 #include <isccfg/cfg.h>
34 ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
35 const cfg_obj_t *zconfig, cfg_aclconfctx_t *ac,
38 * Configure or reconfigure a zone according to the named.conf
39 * data in 'cctx' and 'czone'.
41 * The zone origin is not configured, it is assumed to have been set
42 * at zone creation time.
45 * \li 'lctx' to be initialized or NULL.
46 * \li 'cctx' to be initialized or NULL.
47 * \li 'ac' to point to an initialized ns_aclconfctx_t.
48 * \li 'czone' to be initialized.
49 * \li 'zone' to be initialized.
53 ns_zone_reusable(dns_zone_t *zone, const cfg_obj_t *zconfig);
55 * If 'zone' can be safely reconfigured according to the configuration
56 * data in 'zconfig', return ISC_TRUE. If the configuration data is so
57 * different from the current zone state that the zone needs to be destroyed
58 * and recreated, return ISC_FALSE.
63 #endif /* NS_ZONECONF_H */