/*
* Copyright (C) 1999-2001, 2004, 2005, 2007, 2009, 2013-2016 Internet Systems Consortium, Inc. ("ISC")
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* $Id: lib.c,v 1.19 2009/09/03 00:12:23 each Exp $ */
/*! \file */
#include <config.h>
#include <stddef.h>
/***
*** Globals
***/
/***
*** Private
***/
/***
*** Functions
***/
static void
open_msgcat(void) {
}
void
dns_lib_initmsgcat(void) {
/*
* Initialize the DNS library's message catalog, dns_msgcat, if it
* has not already been initialized.
*/
}
static unsigned int references = 0;
static void
initialize(void) {
if (result != ISC_R_SUCCESS)
return;
if (result != ISC_R_SUCCESS)
goto cleanup_mctx;
if (result != ISC_R_SUCCESS)
goto cleanup_db;
if (result != ISC_R_SUCCESS)
goto cleanup_hash;
if (result != ISC_R_SUCCESS)
goto cleanup_dst;
return;
if (dns_g_mctx != NULL)
}
dns_lib_init(void) {
/*
* Since this routine is expected to be used by a normal application,
* it should be better to return an error, instead of an emergency
* abort, on any failure.
*/
if (result != ISC_R_SUCCESS)
return (result);
if (!initialize_done)
return (ISC_R_FAILURE);
references++;
return (ISC_R_SUCCESS);
}
void
dns_lib_shutdown(void) {
if (--references == 0)
if (!cleanup_ok)
return;
if (isc_hashctx != NULL)
if (dns_g_mctx != NULL)
}