[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/7] libnetfs: include the mig-generated server headers in demuxe
From: |
Justus Winter |
Subject: |
[PATCH 2/7] libnetfs: include the mig-generated server headers in demuxer.c |
Date: |
Mon, 2 Dec 2013 18:01:42 +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.
* libnetfs/demuxer.c: Include the mig-generated server headers.
---
libnetfs/demuxer.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/libnetfs/demuxer.c b/libnetfs/demuxer.c
index 8ef4d86..4c20ab6 100644
--- a/libnetfs/demuxer.c
+++ b/libnetfs/demuxer.c
@@ -20,17 +20,17 @@
#include "netfs.h"
+#include "io_S.h"
+#include "fs_S.h"
+#include "../libports/notify_S.h"
+#include "fsys_S.h"
+#include "../libports/interrupt_S.h"
+#include "ifsock_S.h"
+
int
netfs_demuxer (mach_msg_header_t *inp,
mach_msg_header_t *outp)
{
- mig_routine_t netfs_io_server_routine (mach_msg_header_t *);
- mig_routine_t netfs_fs_server_routine (mach_msg_header_t *);
- mig_routine_t ports_notify_server_routine (mach_msg_header_t *);
- mig_routine_t netfs_fsys_server_routine (mach_msg_header_t *);
- mig_routine_t ports_interrupt_server_routine (mach_msg_header_t *);
- mig_routine_t netfs_ifsock_server_routine (mach_msg_header_t *);
-
mig_routine_t routine;
if ((routine = netfs_io_server_routine (inp)) ||
(routine = netfs_fs_server_routine (inp)) ||
--
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 <=
- [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, 2013/12/02
- [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