app_api.c revision b454c0319685041db3f3e8fd7671e1b364fd20c5
/*
* Copyright (C) 2009, 2013, 2014 Internet Systems Consortium, Inc. ("ISC")
*
* 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 ISC DISCLAIMS ALL WARRANTIES WITH
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS. IN NO EVENT SHALL ISC 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.
*/
/* $Id: app_api.c,v 1.5 2009/09/02 23:48:02 tbox Exp $ */
#include <config.h>
#include <unistd.h>
static isc_mutex_t createlock;
static void
initialize(void) {
}
LOCK(&createlock);
if (appctx_createfunc == NULL)
else
UNLOCK(&createlock);
return (result);
}
if (isc_bind9)
LOCK(&createlock);
UNLOCK(&createlock);
return (result);
}
void
if (isc_bind9)
else
}
if (isc_bind9)
return (isc__app_ctxstart(ctx));
}
if (isc_bind9)
return (isc__app_ctxrun(ctx));
}
void *arg)
{
if (isc_bind9)
}
if (isc_bind9)
return (isc__app_ctxsuspend(ctx));
}
if (isc_bind9)
return (isc__app_ctxshutdown(ctx));
}
void
if (isc_bind9)
}
void
if (isc_bind9)
}
void
if (isc_bind9)
}
void
if (isc_bind9)
}
isc_app_start(void) {
if (isc_bind9)
return (isc__app_start());
return (ISC_R_NOTIMPLEMENTED);
}
{
if (isc_bind9)
return (ISC_R_NOTIMPLEMENTED);
}
isc_app_run() {
if (isc_bind9)
return (isc__app_run());
return (ISC_R_NOTIMPLEMENTED);
}
isc_app_shutdown(void) {
if (isc_bind9)
return (isc__app_shutdown());
return (ISC_R_NOTIMPLEMENTED);
}
isc_app_reload(void) {
if (isc_bind9)
return (isc__app_reload());
return (ISC_R_NOTIMPLEMENTED);
}
void
isc_app_finish(void) {
if (!isc_bind9)
return;
}
void
isc_app_block(void) {
if (!isc_bind9)
return;
}
void
isc_app_unblock(void) {
if (!isc_bind9)
return;
}