Cleanup the public vs private ISCAPI remnants
Since all the libraries are internal now, just cleanup the ISCAPI remnants
in isc_socket, isc_task and isc_timer APIs. This means, there's one less
layer as following changes have been done:
* struct isc_socket and struct isc_socketmgr have been removed
* struct isc__socket and struct isc__socketmgr have been renamed
to struct isc_socket and struct isc_socketmgr
* struct isc_task and struct isc_taskmgr have been removed
* struct isc__task and struct isc__taskmgr have been renamed
to struct isc_task and struct isc_taskmgr
* struct isc_timer and struct isc_timermgr have been removed
* struct isc__timer and struct isc__timermgr have been renamed
to struct isc_timer and struct isc_timermgr
* All the associated code that dealt with typing isc_<foo>
to isc__<foo> and back has been removed.
(cherry picked from commit 16fe0d1f41)
This commit is contained in:
@@ -124,13 +124,13 @@ get_tasks(void **state) {
|
||||
|
||||
/* two tasks in pool; make sure we can access them more than twice */
|
||||
isc_taskpool_gettask(pool, &task1);
|
||||
assert_true(ISCAPI_TASK_VALID(task1));
|
||||
assert_non_null(task1);
|
||||
|
||||
isc_taskpool_gettask(pool, &task2);
|
||||
assert_true(ISCAPI_TASK_VALID(task2));
|
||||
assert_non_null(task2);
|
||||
|
||||
isc_taskpool_gettask(pool, &task3);
|
||||
assert_true(ISCAPI_TASK_VALID(task3));
|
||||
assert_non_null(task3);
|
||||
|
||||
isc_task_destroy(&task1);
|
||||
isc_task_destroy(&task2);
|
||||
@@ -159,9 +159,9 @@ set_privilege(void **state) {
|
||||
isc_taskpool_gettask(pool, &task2);
|
||||
isc_taskpool_gettask(pool, &task3);
|
||||
|
||||
assert_true(ISCAPI_TASK_VALID(task1));
|
||||
assert_true(ISCAPI_TASK_VALID(task2));
|
||||
assert_true(ISCAPI_TASK_VALID(task3));
|
||||
assert_non_null(task1);
|
||||
assert_non_null(task2);
|
||||
assert_non_null(task3);
|
||||
|
||||
assert_true(isc_task_privilege(task1));
|
||||
assert_true(isc_task_privilege(task2));
|
||||
|
||||
Reference in New Issue
Block a user