app_api.c revision 1124950b35ae05a12e804e670607fe5ba775cb4a
/*
* Copyright (C) 2009, 2013 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);
}
#ifndef WIN32
if (isc_bind9)
#endif
LOCK(&createlock);
UNLOCK(&createlock);
return (result);
}
void
#ifndef WIN32
if (isc_bind9)
else
#endif
}
#ifndef WIN32
if (isc_bind9)
return (isc__app_ctxstart(ctx));
#endif
}
#ifndef WIN32
if (isc_bind9)
return (isc__app_ctxrun(ctx));
#endif
}
void *arg)
{
#ifndef WIN32
if (isc_bind9)
#endif
}
#ifndef WIN32
if (isc_bind9)
return (isc__app_ctxsuspend(ctx));
#endif
}
#ifndef WIN32
if (isc_bind9)
return (isc__app_ctxshutdown(ctx));
#endif
}
void
#ifndef WIN32
if (isc_bind9)
#endif
}
void
#ifndef WIN32
if (isc_bind9)
#endif
}
void
#ifndef WIN32
if (isc_bind9)
#endif
}
void
#ifndef WIN32
if (isc_bind9)
#endif
}
#ifndef WIN32
isc_app_start() {
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() {
if (isc_bind9)
return (isc__app_shutdown());
return (ISC_R_NOTIMPLEMENTED);
}
isc_app_reload() {
if (isc_bind9)
return (isc__app_reload());
return (ISC_R_NOTIMPLEMENTED);
}
void
isc_app_finish() {
if (!isc_bind9)
return;
}
void
isc_app_block() {
if (!isc_bind9)
return;
}
void
isc_app_unblock() {
if (!isc_bind9)
return;
}
#endif