Lines Matching defs:iev
354 struct imsgev *iev = env->sc_iev;
355 struct imsgbuf *ibuf = &iev->ibuf;
455 imsg_event_add(iev);
458 event_del(&iev->ev);
467 struct imsgev *iev = env->sc_iev;
469 imsg_compose_event(iev, IMSG_CONF_START, 0, 0, -1, env, sizeof(*env));
471 imsg_compose_event(iev, IMSG_CONF_IDM, 0, 0, -1,
474 imsg_compose_event(iev, IMSG_CONF_END, 0, 0, -1, NULL, 0);
624 imsg_event_add(struct imsgev *iev)
626 if (iev->handler == NULL) {
627 imsg_flush(&iev->ibuf);
631 iev->events = EV_READ;
632 if (iev->ibuf.w.queued)
633 iev->events |= EV_WRITE;
635 event_del(&iev->ev);
636 event_set(&iev->ev, iev->ibuf.fd, iev->events, iev->handler, iev->data);
637 event_add(&iev->ev, NULL);
641 imsg_compose_event(struct imsgev *iev, u_int16_t type, u_int32_t peerid,
646 if ((ret = imsg_compose(&iev->ibuf, type, peerid,
648 imsg_event_add(iev);