zoneconf.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004-2007, 2010, 2011, 2015  Internet Systems Consortium, Inc. ("ISC")
00003  * Copyright (C) 1999-2002  Internet Software Consortium.
00004  *
00005  * Permission to use, copy, modify, and/or distribute this software for any
00006  * purpose with or without fee is hereby granted, provided that the above
00007  * copyright notice and this permission notice appear in all copies.
00008  *
00009  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00010  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00011  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00012  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00013  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00014  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00015  * PERFORMANCE OF THIS SOFTWARE.
00016  */
00017 
00018 /* $Id: zoneconf.h,v 1.30 2011/08/30 23:46:51 tbox Exp $ */
00019 
00020 #ifndef NS_ZONECONF_H
00021 #define NS_ZONECONF_H 1
00022 
00023 /*! \file */
00024 
00025 #include <isc/lang.h>
00026 #include <isc/types.h>
00027 
00028 #include <isccfg/aclconf.h>
00029 #include <isccfg/cfg.h>
00030 
00031 ISC_LANG_BEGINDECLS
00032 
00033 isc_result_t
00034 ns_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
00035                   const cfg_obj_t *zconfig, cfg_aclconfctx_t *ac,
00036                   dns_zone_t *zone, dns_zone_t *raw);
00037 /*%<
00038  * Configure or reconfigure a zone according to the named.conf
00039  * data in 'cctx' and 'czone'.
00040  *
00041  * The zone origin is not configured, it is assumed to have been set
00042  * at zone creation time.
00043  *
00044  * Require:
00045  * \li  'lctx' to be initialized or NULL.
00046  * \li  'cctx' to be initialized or NULL.
00047  * \li  'ac' to point to an initialized ns_aclconfctx_t.
00048  * \li  'czone' to be initialized.
00049  * \li  'zone' to be initialized.
00050  */
00051 
00052 isc_boolean_t
00053 ns_zone_reusable(dns_zone_t *zone, const cfg_obj_t *zconfig);
00054 /*%<
00055  * If 'zone' can be safely reconfigured according to the configuration
00056  * data in 'zconfig', return ISC_TRUE.  If the configuration data is so
00057  * different from the current zone state that the zone needs to be destroyed
00058  * and recreated, return ISC_FALSE.
00059  */
00060 
00061 isc_result_t
00062 ns_zone_configure_writeable_dlz(dns_dlzdb_t *dlzdatabase, dns_zone_t *zone,
00063                                 dns_rdataclass_t rdclass, dns_name_t *name);
00064 /*%>
00065  * configure a DLZ zone, setting up the database methods and calling
00066  * postload to load the origin values
00067  *
00068  * Require:
00069  * \li  'dlzdatabase' to be a valid dlz database
00070  * \li  'zone' to be initialized.
00071  * \li  'rdclass' to be a valid rdataclass
00072  * \li  'name' to be a valid zone origin name
00073  */
00074 
00075 ISC_LANG_ENDDECLS
00076 
00077 #endif /* NS_ZONECONF_H */

Generated on Tue Apr 28 17:40:54 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha