X-Git-Url: https://git.saurik.com/apple/launchd.git/blobdiff_plain/ed34e3c3e5fb80e0702ac7fb92f189862089d820..f271391cf54cba14d21d45675781491323ebe16d:/launchd/src/launchd_unix_ipc.h diff --git a/launchd/src/launchd_unix_ipc.h b/launchd/src/launchd_unix_ipc.h index 82440fd..b463966 100644 --- a/launchd/src/launchd_unix_ipc.h +++ b/launchd/src/launchd_unix_ipc.h @@ -20,23 +20,27 @@ * @APPLE_APACHE_LICENSE_HEADER_END@ */ +#include + +#include "launchd_runtime.h" +#include "launchd_core_logic.h" +#include "launch_priv.h" + struct conncb { kq_callback kqconn_callback; - SLIST_ENTRY(conncb) sle; + LIST_ENTRY(conncb) sle; launch_t conn; - struct jobcb *j; - int disabled_batch:1, futureflags:31; + job_t j; }; extern char *sockpath; -void ipc_open(int fd, struct jobcb *j); +void ipc_open(int fd, job_t j); +void ipc_close_all_with_job(job_t j); void ipc_close(struct conncb *c); void ipc_callback(void *, struct kevent *); -void ipc_readmsg(launch_data_t msg, void *context); void ipc_revoke_fds(launch_data_t o); void ipc_close_fds(launch_data_t o); -void ipc_clean_up(void); -void ipc_server_init(int *, size_t); +void ipc_server_init(void); #endif