Lines Matching defs:ipc
77 struct mach_ctx *ipc;
83 syncq = dispatch_queue_create("heim-ipc-syncq", NULL);
90 ipc = malloc(sizeof(*ipc));
91 if (ipc == NULL) {
96 ipc->server = sport;
97 ipc->name = strdup(service);
98 if (ipc->name == NULL) {
99 mach_release(ipc);
103 *ctx = ipc;
113 struct mach_ctx *ipc = ctx;
138 dispatch_sync(syncq, ^{ sport = ipc->server; });
149 ret = look_up(ipc->name, &nport);
154 if (sport != ipc->server) {
157 mach_port_deallocate(mach_task_self(), ipc->server);
158 ipc->server = nport;
247 struct mach_ctx *ipc = ctx;
267 c->queue = dispatch_queue_create("heim-ipc-async-client", NULL);
305 dispatch_sync(syncq, ^{ sport = ipc->server; });
311 ret = look_up(ipc->name, &sport);
316 mach_port_deallocate(mach_task_self(), ipc->server);
317 ipc->server = sport;
336 struct mach_ctx *ipc = ctx;
337 if (ipc->server != MACH_PORT_NULL)
338 mach_port_deallocate(mach_task_self(), ipc->server);
339 free(ipc->name);
340 free(ipc);
517 int (*ipc)(void *,const heim_idata *, heim_idata *, heim_icred *);
589 return (ctx->ops->ipc)(ctx->ctx, snd, rcv, cred);
601 ret = (ctx->ops->ipc)(ctx->ctx, snd, &rcv, &cred);