diff options
| author | 2020-02-17 18:58:39 +0000 | |
|---|---|---|
| committer | 2020-02-17 18:58:39 +0000 | |
| commit | a61b9c11d1cfbd02350b4fbc5b6cf37b75fec5ff (patch) | |
| tree | 0ff52fd4fe2d2913de1df499e5914c7896a21fd9 /usr.bin/dig/lib/isc/app_api.c | |
| parent | vmm: check guest cpl and xsave_mask in xsetbv handler (diff) | |
| download | wireguard-openbsd-a61b9c11d1cfbd02350b4fbc5b6cf37b75fec5ff.tar.xz wireguard-openbsd-a61b9c11d1cfbd02350b4fbc5b6cf37b75fec5ff.zip | |
remove unused code
ok florian
Diffstat (limited to 'usr.bin/dig/lib/isc/app_api.c')
| -rw-r--r-- | usr.bin/dig/lib/isc/app_api.c | 110 |
1 files changed, 1 insertions, 109 deletions
diff --git a/usr.bin/dig/lib/isc/app_api.c b/usr.bin/dig/lib/isc/app_api.c index fcf7c8e54ba..3a366b25151 100644 --- a/usr.bin/dig/lib/isc/app_api.c +++ b/usr.bin/dig/lib/isc/app_api.c @@ -14,7 +14,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: app_api.c,v 1.1 2020/02/07 09:58:53 florian Exp $ */ +/* $Id: app_api.c,v 1.2 2020/02/17 18:58:39 jung Exp $ */ @@ -30,109 +30,6 @@ static isc_boolean_t is_running = ISC_FALSE; #define ISCAPI_APPMETHODS_VALID(m) ISC_MAGIC_VALID(m, ISCAPI_APPMETHODS_MAGIC) isc_result_t -isc_app_register(isc_appctxcreatefunc_t createfunc) { - isc_result_t result = ISC_R_SUCCESS; - - if (appctx_createfunc == NULL) - appctx_createfunc = createfunc; - else - result = ISC_R_EXISTS; - - return (result); -} - -isc_result_t -isc_appctx_create(isc_appctx_t **ctxp) { - return (isc__appctx_create(ctxp)); -} - -void -isc_appctx_destroy(isc_appctx_t **ctxp) { - REQUIRE(ctxp != NULL && ISCAPI_APPCTX_VALID(*ctxp)); - - isc__appctx_destroy(ctxp); - - ENSURE(*ctxp == NULL); -} - -isc_result_t -isc_app_ctxstart(isc_appctx_t *ctx) { - REQUIRE(ISCAPI_APPCTX_VALID(ctx)); - - return (isc__app_ctxstart(ctx)); -} - -isc_result_t -isc_app_ctxrun(isc_appctx_t *ctx) { - REQUIRE(ISCAPI_APPCTX_VALID(ctx)); - - return (isc__app_ctxrun(ctx)); -} - -isc_result_t -isc_app_ctxonrun(isc_appctx_t *ctx, - isc_task_t *task, isc_taskaction_t action, - void *arg) -{ - REQUIRE(ISCAPI_APPCTX_VALID(ctx)); - - return (isc__app_ctxonrun(ctx, task, action, arg)); -} - -isc_result_t -isc_app_ctxsuspend(isc_appctx_t *ctx) { - REQUIRE(ISCAPI_APPCTX_VALID(ctx)); - - return (isc__app_ctxsuspend(ctx)); -} - -isc_result_t -isc_app_ctxshutdown(isc_appctx_t *ctx) { - REQUIRE(ISCAPI_APPCTX_VALID(ctx)); - - return (isc__app_ctxshutdown(ctx)); -} - -void -isc_app_ctxfinish(isc_appctx_t *ctx) { - REQUIRE(ISCAPI_APPCTX_VALID(ctx)); - - isc__app_ctxfinish(ctx); - - ctx->methods->ctxfinish(ctx); -} - -void -isc_appctx_settaskmgr(isc_appctx_t *ctx, isc_taskmgr_t *taskmgr) { - REQUIRE(ISCAPI_APPCTX_VALID(ctx)); - REQUIRE(taskmgr != NULL); - - isc__appctx_settaskmgr(ctx, taskmgr); - - ctx->methods->settaskmgr(ctx, taskmgr); -} - -void -isc_appctx_setsocketmgr(isc_appctx_t *ctx, isc_socketmgr_t *socketmgr) { - REQUIRE(ISCAPI_APPCTX_VALID(ctx)); - REQUIRE(socketmgr != NULL); - - isc__appctx_setsocketmgr(ctx, socketmgr); - - ctx->methods->setsocketmgr(ctx, socketmgr); -} - -void -isc_appctx_settimermgr(isc_appctx_t *ctx, isc_timermgr_t *timermgr) { - REQUIRE(ISCAPI_APPCTX_VALID(ctx)); - REQUIRE(timermgr != NULL); - - isc__appctx_settimermgr(ctx, timermgr); - - ctx->methods->settimermgr(ctx, timermgr); -} - -isc_result_t isc_app_start(void) { return (isc__app_start()); } @@ -164,11 +61,6 @@ isc_app_shutdown(void) { return (isc__app_shutdown()); } -isc_result_t -isc_app_reload(void) { - return (isc__app_reload()); -} - void isc_app_finish(void) { isc__app_finish(); |
