dns_zone_manage() has been superseded by dns_zonemgr_managezone();

made dns_zone_manage() static so that it cannot be called by mistake
This commit is contained in:
Andreas Gustafsson 2000-01-21 19:52:03 +00:00
parent bf376bb9f4
commit 4380033dc4
2 changed files with 10 additions and 16 deletions

View file

@ -373,19 +373,6 @@ void dns_zone_unload(dns_zone_t *zone);
* 'zone' to be a valid initalised zone.
*/
isc_result_t dns_zone_manage(dns_zone_t *zone, isc_taskmgr_t *tmgr);
/*
* Bring the zone under control of a task manger.
*
* Require:
* 'zone' to be a valid initalised zone.
* 'tmgr' to be a valid initalised task manager.
*
* Returns:
* DNS_R_UNEXPECTED
* DNS_R_SUCCESS
*/
void dns_zone_setoption(dns_zone_t *zone, unsigned int option,
isc_boolean_t value);
/*
@ -796,7 +783,11 @@ dns_zonemgr_create(isc_mem_t *mctx, isc_taskmgr_t *taskmgr,
isc_result_t
dns_zonemgr_managezone(dns_zonemgr_t *zmgr, dns_zone_t *zone);
/*
* Start managing the zone 'zone' with zone manager 'zmgr'.
* Bring the zone under control of a zone manager.
*
* Require:
* 'zmgr' to be a valid zone manager.
* 'zone' to be a valid initalised zone.
*/
isc_result_t

View file

@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: zone.c,v 1.59 2000/01/21 19:20:56 gson Exp $ */
/* $Id: zone.c,v 1.60 2000/01/21 19:52:00 gson Exp $ */
#include <config.h>
@ -1766,7 +1766,10 @@ dns_zone_unmount(dns_zone_t *zone) {
/*XXX MPA*/
}
isc_result_t
/*
* For reference only. Use dns_zonemanager_managezone() instead.
*/
static isc_result_t
dns_zone_manage(dns_zone_t *zone, isc_taskmgr_t *tmgr) {
#if 1
REQUIRE(DNS_ZONE_VALID(zone));