#ifndef _IPC_IPC_TYPES_H_
#define _IPC_IPC_TYPES_H_
#include <mach/port.h>
#include <mach/message.h>
#include <mach/mach_types.h>
#ifdef MACH_KERNEL_PRIVATE
typedef natural_t ipc_table_index_t;
typedef natural_t ipc_table_elems_t;
typedef natural_t ipc_entry_bits_t;
typedef ipc_table_elems_t ipc_entry_num_t;
typedef ipc_table_index_t ipc_port_request_index_t;
typedef mach_port_name_t mach_port_index_t;
typedef mach_port_name_t mach_port_gen_t;
typedef struct ipc_entry *ipc_entry_t;
typedef struct ipc_table_size *ipc_table_size_t;
typedef struct ipc_port_request *ipc_port_request_t;
typedef struct ipc_pset *ipc_pset_t;
typedef struct ipc_kmsg *ipc_kmsg_t;
typedef uint8_t sync_qos_count_t;
typedef uint64_t ipc_label_t;
#define IPC_LABEL_NONE ((ipc_label_t)0x0)
#define IPC_LABEL_DEXT ((ipc_label_t)0x1)
#define IPC_LABEL_PLATFORM ((ipc_label_t)0x2)
#define IPC_LABEL_SPECIAL ((ipc_label_t)0x3)
typedef struct ipc_kobject_label *ipc_kobject_label_t;
#define IE_NULL ((ipc_entry_t) 0)
#define ITS_NULL ((ipc_table_size_t) 0)
#define ITS_SIZE_NONE ((ipc_table_elems_t) -1)
#define IPR_NULL ((ipc_port_request_t) 0)
#define IPS_NULL ((ipc_pset_t) 0)
#define IKM_NULL ((ipc_kmsg_t) 0)
typedef void (*mach_msg_continue_t)(mach_msg_return_t);
#define MACH_MSG_CONTINUE_NULL ((mach_msg_continue_t) 0)
typedef struct ipc_importance_elem *ipc_importance_elem_t;
#define IIE_NULL ((ipc_importance_elem_t)0)
typedef struct ipc_importance_task *ipc_importance_task_t;
#define IIT_NULL ((ipc_importance_task_t)0)
typedef struct ipc_importance_inherit *ipc_importance_inherit_t;
#define III_NULL ((ipc_importance_inherit_t)0)
#else
struct ipc_object;
#endif
typedef struct ipc_object *ipc_object_t;
#define IPC_OBJECT_NULL ((ipc_object_t) 0)
#define IPC_OBJECT_DEAD ((ipc_object_t)~0)
#define IPC_OBJECT_VALID(io) (((io) != IPC_OBJECT_NULL) && \
((io) != IPC_OBJECT_DEAD))
#endif