Lines Matching defs:imsg
32 static void engine_dispatch_priv(struct imsgproc *, struct imsg *, void *);
33 static void engine_dispatch_frontend(struct imsgproc *, struct imsg *, void *);
70 /* Setup parent imsg socket. */
93 engine_dispatch_priv(struct imsgproc *proc, struct imsg *imsg, void *arg)
98 if (imsg == NULL) {
99 log_debug("%s: imsg connection lost", __func__);
105 log_imsg(proc, imsg);
107 switch (imsg->hdr.type) {
111 if ((fd = imsg_get_fd(imsg)) == -1)
134 fatalx("%s: unexpected imsg %s", __func__,
135 log_fmt_imsgtype(imsg->hdr.type));
140 engine_dispatch_frontend(struct imsgproc *proc, struct imsg *imsg, void *arg)
142 if (imsg == NULL) {
143 log_debug("%s: imsg connection lost", __func__);
149 log_imsg(proc, imsg);
151 switch (imsg->hdr.type) {
154 resolver_dispatch_request(proc, imsg);
167 lpr_dispatch_frontend(proc, imsg);
171 fatalx("%s: unexpected imsg %s", __func__,
172 log_fmt_imsgtype(imsg->hdr.type));