Lines Matching refs:eonce
575 struct event_once *eonce = arg;
577 (*eonce->cb)(fd, events, eonce->arg);
578 free(eonce);
594 struct event_once *eonce;
602 if ((eonce = calloc(1, sizeof(struct event_once))) == NULL)
605 eonce->cb = callback;
606 eonce->arg = arg;
614 evtimer_set(&eonce->ev, event_once_cb, eonce);
618 event_set(&eonce->ev, fd, events, event_once_cb, eonce);
621 free(eonce);
625 res = event_base_set(base, &eonce->ev);
627 res = event_add(&eonce->ev, tv);
629 free(eonce);