]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
complete removal of a few unneeded functions
authorEvan Hunt <each@isc.org>
Wed, 3 Oct 2018 23:11:10 +0000 (16:11 -0700)
committerWitold Kręcicki <wpk@isc.org>
Thu, 18 Oct 2018 09:19:12 +0000 (09:19 +0000)
- removed register functions from isc_app, isc_timer, isc_task
- added a task_p.h header for use by unit tests

lib/isc/include/isc/app.h
lib/isc/include/isc/task.h
lib/isc/include/isc/timer.h
lib/isc/task_p.h [new file with mode: 0644]
lib/isc/tests/task_test.c
lib/isc/win32/app.c
util/copyrights

index 9c15bd61b7ae847a3c24014aa51d08b7d446b2d7..75161b9fe3951b61ef9a8e15a15f97b0bc10d04f 100644 (file)
@@ -333,29 +333,6 @@ isc_appctx_settimermgr(isc_appctx_t *ctx, isc_timermgr_t *timermgr);
  *\li  'timermgr' is a valid timer manager.
  */
 
-/*%<
- * See isc_appctx_create() above.
- */
-typedef isc_result_t
-(*isc_appctxcreatefunc_t)(isc_mem_t *mctx, isc_appctx_t **ctxp);
-
-isc_result_t
-isc_app_register(isc_appctxcreatefunc_t createfunc);
-/*%<
- * Register a new application implementation and add it to the list of
- * supported implementations.  This function must be called when a different
- * event library is used than the one contained in the ISC library.
- */
-
-isc_result_t
-isc__app_register(void);
-/*%<
- * A short cut function that specifies the application module in the ISC
- * library for isc_app_register().  An application that uses the ISC library
- * usually do not have to care about this function: it would call
- * isc_lib_register(), which internally calls this function.
- */
-
 ISC_LANG_ENDDECLS
 
 #endif /* ISC_APP_H */
index 3e14063fae43b294699271134e0f40d612cd0620..c1bc09047ac16217a60720dd6269820012fdfe00 100644 (file)
@@ -759,41 +759,6 @@ isc_result_t
 isc_taskmgr_renderjson(isc_taskmgr_t *mgr, json_object *tasksobj);
 #endif
 
-/*%<
- * See isc_taskmgr_create() above.
- */
-typedef isc_result_t
-(*isc_taskmgrcreatefunc_t)(isc_mem_t *mctx, unsigned int workers,
-                          unsigned int default_quantum,
-                          isc_taskmgr_t **managerp);
-
-isc_result_t
-isc_task_register(isc_taskmgrcreatefunc_t createfunc);
-/*%<
- * Register a new task management implementation and add it to the list of
- * supported implementations.  This function must be called when a different
- * event library is used than the one contained in the ISC library.
- */
-
-isc_result_t
-isc__task_register(void);
-/*%<
- * A short cut function that specifies the task management module in the ISC
- * library for isc_task_register().  An application that uses the ISC library
- * usually do not have to care about this function: it would call
- * isc_lib_register(), which internally calls this function.
- */
-
-/*%<
- * These functions allow unit tests to manipulate the processing
- * of the task queue. They are not intended as part of the public API.
- */
-void
-isc__taskmgr_pause(isc_taskmgr_t *taskmgr);
-
-void
-isc__taskmgr_resume(isc_taskmgr_t *taskmgr);
-
 ISC_LANG_ENDDECLS
 
 #endif /* ISC_TASK_H */
index cbc3153dd94ae0dab54dbb5f32a531d464e84701..c8f31d9d14233782bf6377c9f3731dc88d767247 100644 (file)
@@ -373,29 +373,6 @@ isc_timermgr_destroy(isc_timermgr_t **managerp);
 
 void isc_timermgr_poke(isc_timermgr_t *m);
 
-/*%<
- * See isc_timermgr_create() above.
- */
-typedef isc_result_t
-(*isc_timermgrcreatefunc_t)(isc_mem_t *mctx, isc_timermgr_t **managerp);
-
-isc_result_t
-isc__timer_register(void);
-/*%<
- * Register a new timer management implementation and add it to the list of
- * supported implementations.  This function must be called when a different
- * event library is used than the one contained in the ISC library.
- */
-
-isc_result_t
-isc_timer_register(isc_timermgrcreatefunc_t createfunc);
-/*%<
- * A short cut function that specifies the timer management module in the ISC
- * library for isc_timer_register().  An application that uses the ISC library
- * usually do not have to care about this function: it would call
- * isc_lib_register(), which internally calls this function.
- */
-
 ISC_LANG_ENDDECLS
 
 #endif /* ISC_TIMER_H */
diff --git a/lib/isc/task_p.h b/lib/isc/task_p.h
new file mode 100644 (file)
index 0000000..b3da61f
--- /dev/null
@@ -0,0 +1,27 @@
+/*
+ * Copyright (C) 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/.
+ *
+ * See the COPYRIGHT file distributed with this work for additional
+ * information regarding copyright ownership.
+ */
+
+#ifndef ISC_TASK_P_H
+#define ISC_TASK_P_H
+
+/*! \file */
+
+/*%
+ * These functions allow unit tests to manipulate the processing
+ * of the task queue. They are not intended as part of the public API.
+ */
+void
+isc__taskmgr_pause(isc_taskmgr_t *taskmgr);
+void
+isc__taskmgr_resume(isc_taskmgr_t *taskmgr);
+
+
+#endif /* ISC_TASK_P_H */
index 58916e462181095ad71c7e07d508c84ea149835a..2cb299d4de7464ede52835c0e3357bbcc0182df8 100644 (file)
@@ -31,6 +31,8 @@
 
 #include "isctest.h"
 
+#include "../task_p.h"
+
 /*
  * Helper functions
  */
index e2ad0b0eb5f731d9d2eecf904105be505f67e46e..d43d457f17a807f335e6eb089bde9a3d4c47b36d 100644 (file)
@@ -422,9 +422,4 @@ isc_appctx_settimermgr(isc_appctx_t *ctx0, isc_timermgr_t *timermgr) {
        ctx->timermgr = timermgr;
 }
 
-isc_result_t
-isc_app_register(void) {
-       return (isc_app_register(isc__appctx_create));
-}
-
 #include "../app_api.c"
index 9256bd8483478c0116bbe5ef8493ef7595fd10e3..ae0fad1f7af265d4377e5a4a03dfe0316a47cab7 100644 (file)
 ./lib/isc/string.c                             C       1999,2000,2001,2003,2004,2005,2006,2007,2011,2012,2014,2015,2016,2018
 ./lib/isc/symtab.c                             C       1996,1997,1998,1999,2000,2001,2004,2005,2007,2011,2012,2013,2016,2018
 ./lib/isc/task.c                               C       1998,1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009,2010,2011,2012,2013,2014,2015,2016,2017,2018
+./lib/isc/task_p.h                             C       2018
 ./lib/isc/taskpool.c                           C       1999,2000,2001,2004,2005,2007,2011,2012,2013,2016,2018
 ./lib/isc/tests/Atffile                                X       2011,2017,2018
 ./lib/isc/tests/Kyuafile                       X       2017,2018