[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnumach] 12/56: ipc: organize ipc print function prototypes
From: |
Samuel Thibault |
Subject: |
[gnumach] 12/56: ipc: organize ipc print function prototypes |
Date: |
Sat, 28 Sep 2013 12:43:12 +0000 |
This is an automated email from the git hooks/post-receive script.
sthibault pushed a commit to branch master
in repository gnumach.
commit 952932ffe39658a19034932ff8a714c52ce772a1
Author: Marin Ramesa <address@hidden>
Date: Wed Jul 10 13:14:27 2013 +0200
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>.
---
ipc/ipc_kmsg.c | 1 +
ipc/ipc_port.c | 1 +
ipc/ipc_port.h | 3 ---
ipc/ipc_print.h | 20 ++++++++++++++++++++
ipc/ipc_pset.c | 1 +
ipc/ipc_pset.h | 3 ---
6 files changed, 23 insertions(+), 6 deletions(-)
diff --git a/ipc/ipc_kmsg.c b/ipc/ipc_kmsg.c
index c2689a4..3ad274d 100644
--- a/ipc/ipc_kmsg.c
+++ b/ipc/ipc_kmsg.c
@@ -66,6 +66,7 @@
#if MACH_KDB
#include <ddb/db_output.h>
+#include <ipc/ipc_print.h>
#endif
extern int copyinmap();
diff --git a/ipc/ipc_port.c b/ipc/ipc_port.c
index 8e41c3c..b960739 100644
--- a/ipc/ipc_port.c
+++ b/ipc/ipc_port.c
@@ -53,6 +53,7 @@
#if MACH_KDB
#include <ddb/db_output.h>
+#include <ipc/ipc_print.h>
#endif /* MACH_KDB */
diff --git a/ipc/ipc_port.h b/ipc/ipc_port.h
index 70ec494..27d2e49 100644
--- a/ipc/ipc_port.h
+++ b/ipc/ipc_port.h
@@ -325,7 +325,4 @@ ipc_port_dealloc_special(ipc_port_t, ipc_space_t);
#define ipc_port_release(port) \
ipc_object_release(&(port)->ip_object)
-extern void
-ipc_port_print(ipc_port_t);
-
#endif /* _IPC_IPC_PORT_H_ */
diff --git a/ipc/ipc_print.h b/ipc/ipc_print.h
new file mode 100644
index 0000000..ef676a7
--- /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 */
diff --git a/ipc/ipc_pset.c b/ipc/ipc_pset.c
index e2b3c86..c016d27 100644
--- a/ipc/ipc_pset.c
+++ b/ipc/ipc_pset.c
@@ -48,6 +48,7 @@
#if MACH_KDB
#include <ddb/db_output.h>
+#include <ipc/ipc_print.h>
#endif /* MACH_KDB */
diff --git a/ipc/ipc_pset.h b/ipc/ipc_pset.h
index ac984f9..e9936fe 100644
--- a/ipc/ipc_pset.h
+++ b/ipc/ipc_pset.h
@@ -89,7 +89,4 @@ ipc_pset_destroy(ipc_pset_t);
#define ipc_pset_release(pset) \
ipc_object_release(&(pset)->ips_object)
-extern void
-ipc_pset_print(ipc_pset_t);
-
#endif /* _IPC_IPC_PSET_H_ */
--
Alioth's /usr/local/bin/git-commit-notice on
/srv/git.debian.org/git/pkg-hurd/gnumach.git
- [gnumach] 31/56: remove register qualifiers, (continued)
- [gnumach] 31/56: remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 29/56: use boolean_t instead of an int, Samuel Thibault, 2013/09/28
- [gnumach] 11/56: vm: organize vm print function prototypes, Samuel Thibault, 2013/09/28
- [gnumach] 10/56: ddb: cleanup db_command.c, Samuel Thibault, 2013/09/28
- [gnumach] 24/56: remove definition of NDEVICES, Samuel Thibault, 2013/09/28
- [gnumach] 16/56: Drop useless forward declaration, Samuel Thibault, 2013/09/28
- [gnumach] 18/56: Remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 13/56: kern: add missing prototype, Samuel Thibault, 2013/09/28
- [gnumach] 15/56: Drop luna88k bits, Samuel Thibault, 2013/09/28
- [gnumach] 35/56: remove lint code, Samuel Thibault, 2013/09/28
- [gnumach] 12/56: ipc: organize ipc print function prototypes,
Samuel Thibault <=
- [gnumach] 37/56: device: remove unused file dk_label.c, Samuel Thibault, 2013/09/28
- [gnumach] 32/56: Coding style trivial fixes, Samuel Thibault, 2013/09/28
- [gnumach] 17/56: Add const qualifiers., Samuel Thibault, 2013/09/28
- [gnumach] 36/56: add comments after endifs, Samuel Thibault, 2013/09/28
- [gnumach] 34/56: remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 33/56: remove lint code, Samuel Thibault, 2013/09/28
- [gnumach] 30/56: another small change in style for consistency, Samuel Thibault, 2013/09/28
- [gnumach] 27/56: another small change in style for consistency, Samuel Thibault, 2013/09/28
- [gnumach] 25/56: remove register qualifiers, Samuel Thibault, 2013/09/28
- [gnumach] 22/56: remove register qualifiers., Samuel Thibault, 2013/09/28