* @APPLE_APACHE_LICENSE_HEADER_END@
*/
+#include <sys/queue.h>
+
+#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