summaryrefslogtreecommitdiff
path: root/ipc/ipc_print.h
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-07-10 13:14:27 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-07-18 00:09:19 +0200
commit952932ffe39658a19034932ff8a714c52ce772a1 (patch)
tree9aff0b20248761d05f61fd4c4fb70e69e691d819 /ipc/ipc_print.h
parent91f9da20ad9da24c13b2b87b14752c865454744b (diff)
ipc: organize ipc print function prototypes
* ipc/ipc_print.h: New file. [MACH_KDB] Include <mach/mach_types.h>. [MACH_KDB] Include <mach/message.h>. [MACH_KDB] Include <ipc/ipc_types.h>. (ipc_port_print): Add prototype. (ipc_pset_print): Likewise. (ipc_kmsg_print): Likewise. (ipc_msg_print): Likewise. * ipc/ipc_port.h (ipc_port_print): Remove prototype. * ipc/ipc_port.c [MACH_KDB]: Include <ipc/ipc_print.h>. * ipc/ipc_pset.h (ipc_pset_print): Remove prototype. * ipc/ipc_pset.c [MACH_KDB]: Include <ipc/ipc_print.h>. * ipc/ipc_kmsg.c [MACH_KDB]: Include <ipc/ipc_print.h>.
Diffstat (limited to 'ipc/ipc_print.h')
-rw-r--r--ipc/ipc_print.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/ipc/ipc_print.h b/ipc/ipc_print.h
new file mode 100644
index 00000000..ef676a77
--- /dev/null
+++ b/ipc/ipc_print.h
@@ -0,0 +1,20 @@
+#ifndef _IPC_PRINT_H_
+#define _IPC_PRINT_H_
+
+#if MACH_KDB
+
+#include <mach/mach_types.h>
+#include <mach/message.h>
+#include <ipc/ipc_types.h>
+
+extern void ipc_port_print(ipc_port_t);
+
+extern void ipc_pset_print(ipc_pset_t);
+
+extern void ipc_kmsg_print(ipc_kmsg_t);
+
+extern void ipc_msg_print(mach_msg_header_t*);
+
+#endif /* MACH_KDB */
+
+#endif /* IPC_PRINT_H */