Lines Matching defs:event
51 dns_lookupevent_t * event;
64 static void lookup_find(dns_lookup_t *lookup, dns_fetchevent_t *event);
67 fetch_done(isc_task_t *task, isc_event_t *event) {
68 dns_lookup_t *lookup = event->ev_arg;
72 REQUIRE(event->ev_type == DNS_EVENT_FETCHDONE);
75 fevent = (dns_fetchevent_t *)event;
142 lookup->event->name = name;
143 lookup->event->rdataset = rdataset;
144 lookup->event->sigrdataset = sigrdataset;
174 &lookup->event->db, &lookup->event->node,
181 lookup_find(dns_lookup_t *lookup, dns_fetchevent_t *event) {
206 if (event == NULL && !lookup->canceled) {
214 if (lookup->event->node != NULL) {
215 INSIST(lookup->event->db != NULL);
216 dns_db_detachnode(lookup->event->db,
217 &lookup->event->node);
219 if (lookup->event->db != NULL)
220 dns_db_detach(&lookup->event->db);
227 if (lookup->event->node != NULL) {
228 INSIST(lookup->event->db != NULL);
229 dns_db_detachnode(lookup->event->db,
230 &lookup->event->node);
232 if (lookup->event->db != NULL)
233 dns_db_detach(&lookup->event->db);
239 } else if (event != NULL) {
240 result = event->result;
241 fname = dns_fixedname_name(&event->foundname);
243 INSIST(event->rdataset == &lookup->rdataset);
244 INSIST(event->sigrdataset == &lookup->sigrdataset);
257 if (event == NULL)
259 if (event->db != NULL)
260 dns_db_attach(event->db, &lookup->event->db);
261 if (event->node != NULL)
262 dns_db_attachnode(lookup->event->db,
263 event->node,
264 &lookup->event->node);
325 if (event != NULL) {
326 if (event->node != NULL)
327 dns_db_detachnode(event->db, &event->node);
328 if (event->db != NULL)
329 dns_db_detach(&event->db);
330 isc_event_free(ISC_EVENT_PTR(&event));
345 lookup->event->result = result;
346 lookup->event->ev_sender = lookup;
348 (isc_event_t **)&lookup->event);
356 levent_destroy(isc_event_t *event) {
360 REQUIRE(event->ev_type == DNS_EVENT_LOOKUPDONE);
361 mctx = event->ev_destroy_arg;
362 levent = (dns_lookupevent_t *)event;
381 isc_mem_put(mctx, event, event->ev_size);
400 action, arg, sizeof(*lookup->event));
405 lookup->event = (dns_lookupevent_t *)ievent;
406 lookup->event->ev_destroy = levent_destroy;
407 lookup->event->ev_destroy_arg = mctx;
408 lookup->event->result = ISC_R_FAILURE;
409 lookup->event->name = NULL;
410 lookup->event->rdataset = NULL;
411 lookup->event->sigrdataset = NULL;
412 lookup->event->db = NULL;
413 lookup->event->node = NULL;
448 ievent = (isc_event_t *)lookup->event;
450 lookup->event = NULL;
484 REQUIRE(lookup->event == NULL);