2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

the event tag is now a void *

This commit is contained in:
Bob Halley
1999-07-10 00:55:07 +00:00
parent c869cd3d6e
commit 9db3eaed95
4 changed files with 8 additions and 8 deletions

View File

@@ -508,7 +508,7 @@ udp_recv(isc_task_t *task, isc_event_t *ev_in)
} else if (queue_response) {
ISC_LIST_APPEND(resp->items, rev, link);
} else {
ISC_EVENT_INIT(rev, sizeof(*rev), 0, 0, DNS_EVENT_DISPATCH,
ISC_EVENT_INIT(rev, sizeof(*rev), 0, NULL, DNS_EVENT_DISPATCH,
resp->action, resp->arg, resp, NULL, NULL);
XDEBUG(("Sent event for buffer %p (len %d) to task %p\n",
rev->buffer.base, rev->buffer.length, resp->task));
@@ -1078,7 +1078,7 @@ do_next_response(dns_dispatch_t *disp, dns_dispentry_t *resp)
ISC_LIST_UNLINK(disp->rq_events, ev, link);
ISC_EVENT_INIT(ev, sizeof(*ev), 0, 0, DNS_EVENT_DISPATCH,
ISC_EVENT_INIT(ev, sizeof(*ev), 0, NULL, DNS_EVENT_DISPATCH,
resp->action, resp->arg, resp, NULL, NULL);
resp->item_out = ISC_TRUE;
XDEBUG(("Sent event for buffer %p (len %d) to task %p\n",
@@ -1102,7 +1102,7 @@ do_next_request(dns_dispatch_t *disp, dns_dispentry_t *resp)
ISC_LIST_UNLINK(disp->rq_events, ev, link);
ISC_EVENT_INIT(ev, sizeof(*ev), 0, 0, DNS_EVENT_DISPATCH,
ISC_EVENT_INIT(ev, sizeof(*ev), 0, NULL, DNS_EVENT_DISPATCH,
resp->action, resp->arg, resp, NULL, NULL);
resp->item_out = ISC_TRUE;
XDEBUG(("Sent event for buffer %p (len %d) to task %p\n",
@@ -1155,7 +1155,7 @@ do_cancel(dns_dispatch_t *disp, dns_dispentry_t *resp)
* Send the shutdown failsafe event to this resp.
*/
ev = disp->failsafe_ev;
ISC_EVENT_INIT(ev, sizeof (*ev), 0, 0, DNS_EVENT_DISPATCH,
ISC_EVENT_INIT(ev, sizeof (*ev), 0, NULL, DNS_EVENT_DISPATCH,
resp->action, resp->arg, resp, NULL, NULL);
ev->result = ISC_R_CANCELED;
ev->buffer.base = NULL;

View File

@@ -50,7 +50,7 @@ isc_event_allocate(isc_mem_t *mctx, void *sender, isc_eventtype_t type,
event = isc_mem_get(mctx, size);
if (event == NULL)
return (NULL);
ISC_EVENT_INIT(event, size, 0, 0, type, action, arg, sender,
ISC_EVENT_INIT(event, size, 0, NULL, type, action, arg, sender,
destroy, mctx);
return (event);

View File

@@ -43,7 +43,7 @@ typedef void (*isc_eventdestructor_t)(isc_event_t *);
#define ISC_EVENT_COMMON(ltype) \
size_t size; \
unsigned int attributes; \
unsigned int tag; \
void * tag; \
isc_eventtype_t type; \
isc_taskaction_t action; \
void * arg; \

View File

@@ -201,7 +201,7 @@ destroy(isc_timer_t *timer) {
timer,
ISC_TASKEVENT_FIRSTEVENT,
ISC_TASKEVENT_LASTEVENT,
0);
NULL);
deschedule(timer);
UNLINK(manager->timers, timer, link);
@@ -377,7 +377,7 @@ isc_timer_reset(isc_timer_t *timer, isc_timertype_t type,
timer,
ISC_TASKEVENT_FIRSTEVENT,
ISC_TASKEVENT_LASTEVENT,
0);
NULL);
timer->type = type;
timer->expires = *expires;
timer->interval = *interval;