/*1* Copyright (c) 2005 Apple Computer, Inc. All rights reserved.2*3* @APPLE_APACHE_LICENSE_HEADER_START@4*5* Licensed under the Apache License, Version 2.0 (the "License");6* you may not use this file except in compliance with the License.7* You may obtain a copy of the License at8*9* http://www.apache.org/licenses/LICENSE-2.010*11* Unless required by applicable law or agreed to in writing, software12* distributed under the License is distributed on an "AS IS" BASIS,13* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.14* See the License for the specific language governing permissions and15* limitations under the License.16*17* @APPLE_APACHE_LICENSE_HEADER_END@18*/1920#ifndef __LAUNCHD_IPC_H__21#define __LAUNCHD_IPC_H__2223#include <sys/queue.h>24#include "runtime.h"25#include "core.h"26#include "launch_priv.h"27#include "launch_internal.h"2829struct conncb {30kq_callback kqconn_callback;31LIST_ENTRY(conncb) sle;32launch_t conn;33job_t j;34};3536extern char *sockpath;3738void ipc_open(int fd, job_t j);39void ipc_close_all_with_job(job_t j);40void ipc_close(struct conncb *c);41void ipc_callback(void *, struct kevent *);42void ipc_revoke_fds(launch_data_t o);43void ipc_close_fds(launch_data_t o);44void ipc_server_init(void);4546#endif /* __LAUNCHD_IPC_H__ */474849