s/dns_dispatch_destroy()/dns_dispatch_detach()/g

This commit is contained in:
Michael Graff
1999-07-13 00:25:21 +00:00
parent 5039f2cad3
commit 2743e0ce08
4 changed files with 34 additions and 37 deletions

View File

@@ -942,7 +942,19 @@ dns_dispatch_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task,
}
void
dns_dispatch_destroy(dns_dispatch_t **dispp)
dns_dispatch_attach(dns_dispatch_t *disp, dns_dispatch_t **dispp)
{
REQUIRE(VALID_DISPATCH(disp));
REQUIRE(dispp != NULL && *dispp == NULL);
disp->refcount++;
*dispp = disp;
}
void
dns_dispatch_detach(dns_dispatch_t **dispp)
{
dns_dispatch_t *disp;
isc_boolean_t killit;

View File

@@ -109,10 +109,24 @@ dns_dispatch_create(isc_mem_t *mctx, isc_socket_t *sock, isc_task_t *task,
*/
void
dns_dispatch_destroy(dns_dispatch_t **dispp);
dns_dispatch_attach(dns_dispatch_t *disp, dns_dispatch_t **dispp);
/*
* Destroys dispatch. All buffers and other bits must be returned to the
* dispatch before this is called.
* Attach to a dispatch handle.
*
* Requires:
* < mumble >
*
* Ensures:
* < mumble >
*
* Returns:
* < mumble >
*/
void
dns_dispatch_detach(dns_dispatch_t **dispp);
/*
* Detaches from the dispatch.
*
* Requires:
* < mumble >
@@ -233,36 +247,6 @@ dns_dispatch_freeevent(dns_dispatch_t *disp, dns_dispentry_t *resp,
* < mumble >
*/
void
dns_dispatch_attach(dns_dispatch_t *disp, dns_dispatch_t **dispp);
/*
* Attach to a dispatch handle.
*
* Requires:
* < mumble >
*
* Ensures:
* < mumble >
*
* Returns:
* < mumble >
*/
void
dns_dispatch_detach(dns_dispatch_t **dispp);
/*
* Detach from a dispatch handle.
*
* Requires:
* < mumble >
*
* Ensures:
* < mumble >
*
* Returns:
* < mumble >
*/
isc_socket_t *
dns_dispatch_getsocket(dns_dispatch_t *disp);
/*