s/dns_dispatch_destroy()/dns_dispatch_detach()/g
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user