Lines Matching defs:ipc
61 struct mach_ctx *ipc;
67 syncq = dispatch_queue_create("heim-ipc-syncq", NULL);
74 ipc = malloc(sizeof(*ipc));
75 if (ipc == NULL) {
80 ipc->server = sport;
81 ipc->name = strdup(service);
82 if (ipc->name == NULL) {
83 mach_release(ipc);
87 *ctx = ipc;
97 struct mach_ctx *ipc = ctx;
114 dispatch_sync(syncq, ^{ sport = ipc->server; });
125 ret = bootstrap_look_up(bootstrap_port, ipc->name, &nport);
130 if (sport != ipc->server) {
133 mach_port_deallocate(mach_task_self(), ipc->server);
134 ipc->server = nport;
223 struct mach_ctx *ipc = ctx;
243 c->queue = dispatch_queue_create("heim-ipc-async-client", NULL);
274 dispatch_sync(syncq, ^{ sport = ipc->server; });
280 ret = bootstrap_look_up(bootstrap_port, ipc->name, &sport);
285 mach_port_deallocate(mach_task_self(), ipc->server);
286 ipc->server = sport;
305 struct mach_ctx *ipc = ctx;
306 if (ipc->server != MACH_PORT_NULL)
307 mach_port_deallocate(mach_task_self(), ipc->server);
308 free(ipc->name);
309 free(ipc);
482 int (*ipc)(void *,const heim_idata *, heim_idata *, heim_icred *);
554 return (ctx->ops->ipc)(ctx->ctx, snd, rcv, cred);
566 ret = (ctx->ops->ipc)(ctx->ctx, snd, &rcv, &cred);