Lines Matching defs:event
34 * XXXRTH We could use a static event...
117 dns_byaddrevent_t * event;
155 ISC_LIST_APPEND(byaddr->event->names, name, link);
166 lookup_done(isc_task_t *task, isc_event_t *event) {
167 dns_byaddr_t *byaddr = event->ev_arg;
171 REQUIRE(event->ev_type == DNS_EVENT_LOOKUPDONE);
177 levent = (dns_lookupevent_t *)event;
181 byaddr->event->result = result;
183 byaddr->event->result = levent->result;
184 isc_event_free(&event);
185 isc_task_sendanddetach(&byaddr->task, (isc_event_t **)&byaddr->event);
189 bevent_destroy(isc_event_t *event) {
194 REQUIRE(event->ev_type == DNS_EVENT_BYADDRDONE);
195 mctx = event->ev_destroy_arg;
196 bevent = (dns_byaddrevent_t *)event;
206 isc_mem_put(mctx, event, event->ev_size);
225 byaddr->event = isc_mem_get(mctx, sizeof(*byaddr->event));
226 if (byaddr->event == NULL) {
230 ISC_EVENT_INIT(byaddr->event, sizeof(*byaddr->event), 0, NULL,
233 byaddr->event->result = ISC_R_FAILURE;
234 ISC_LIST_INIT(byaddr->event->names);
268 ievent = (isc_event_t *)byaddr->event;
270 byaddr->event = NULL;
302 REQUIRE(byaddr->event == NULL);