[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 6/7] pfinet: include the mig-generated server headers in main.c
From: |
Justus Winter |
Subject: |
[PATCH 6/7] pfinet: include the mig-generated server headers in main.c |
Date: |
Mon, 2 Dec 2013 18:01:46 +0100 |
GNU MIG recently gained support for emitting x_server_routine
declarations in the generated server header file. Using this
declaration, the x_server_routine functions can be inlined into the
demuxer function.
* pfinet/main.c: Include the mig-generated server headers.
---
pfinet/main.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/pfinet/main.c b/pfinet/main.c
index dce1600..a596e18 100644
--- a/pfinet/main.c
+++ b/pfinet/main.c
@@ -72,16 +72,17 @@ const char *argp_program_version = STANDARD_HURD_VERSION
(pfinet);
/* Option parser. */
extern struct argp pfinet_argp;
+#include "io_S.h"
+#include "socket_S.h"
+#include "pfinet_S.h"
+#include "iioctl_S.h"
+#include "startup_notify_S.h"
+
int
pfinet_demuxer (mach_msg_header_t *inp,
mach_msg_header_t *outp)
{
struct port_info *pi;
- mig_routine_t io_server_routine (mach_msg_header_t *);
- mig_routine_t socket_server_routine (mach_msg_header_t *);
- mig_routine_t pfinet_server_routine (mach_msg_header_t *);
- mig_routine_t iioctl_server_routine (mach_msg_header_t *);
- mig_routine_t startup_notify_server_routine (mach_msg_header_t *);
/* We have several classes in one bucket, which need to be demuxed
differently. */
--
1.7.10.4
- Inlining the x_server_routines in the demuxing functions, Justus Winter, 2013/12/02
- [PATCH 2/7] libnetfs: include the mig-generated server headers in demuxer.c, Justus Winter, 2013/12/02
- [PATCH 1/7] libdiskfs: include the mig-generated server headers in demuxer.c, Justus Winter, 2013/12/02
- [PATCH 4/7] exec: include the mig-generated server headers in main.c, Justus Winter, 2013/12/02
- [PATCH 3/7] libtrivfs: include the mig-generated server headers in demuxer.c, Justus Winter, 2013/12/02
- [PATCH 6/7] pfinet: include the mig-generated server headers in main.c,
Justus Winter <=
- [PATCH 5/7] proc: include the mig-generated server headers in main.c, Justus Winter, 2013/12/02
- [PATCH 7/7] pflocal: include the mig-generated server headers, Justus Winter, 2013/12/02