Lines Matching defs:iev_frontend
79 static struct imsgev *iev_frontend;
239 if ((iev_frontend = malloc(sizeof(struct imsgev))) == NULL ||
242 if (imsgbuf_init(&iev_frontend->ibuf, pipe_main2frontend[0]) == -1)
244 imsgbuf_allow_fdpass(&iev_frontend->ibuf);
245 iev_frontend->handler = main_dispatch_frontend;
252 iev_frontend->events = EV_READ;
253 event_set(&iev_frontend->ev, iev_frontend->ibuf.fd,
254 iev_frontend->events, iev_frontend->handler, iev_frontend);
255 event_add(&iev_frontend->ev, NULL);
262 if (main_imsg_send_ipc_sockets(&iev_frontend->ibuf,
319 imsgbuf_clear(&iev_frontend->ibuf);
320 close(iev_frontend->ibuf.fd);
338 free(iev_frontend);
510 if (iev_frontend)
511 imsg_compose_event(iev_frontend, type, 0, pid, -1, data,
518 if (iev_frontend)
519 imsg_compose_event(iev_frontend, type, 0, pid, fd, NULL, 0);
641 if (imsg_compose_event(iev_frontend, type, 0, 0, -1, buf, len) == -1)