summaryrefslogtreecommitdiff
path: root/eth-multiplexer/mig-mutate.h
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-08 17:53:55 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-04-11 12:52:31 +0200
commitc1685eb975f84c5df38f20eb4698ede36a1653e1 (patch)
treea6a4c233a52645fedba115a68453051d273d655e /eth-multiplexer/mig-mutate.h
parentbbca7914d49aef1e83686a66a122f69ed704a848 (diff)
eth-multiplexer: fix receiver lookups
Previously, the device definitions were filtered using sed to replace the device_t type with mach_port_send_t to make the device argument of device_open polymorphic. Rather than doing that, which makes it impossible to use translation functions, the definition of device_open has been amended. * eth-multiplexer/Makefile: Remove ourdevice hack that changes device_t to mach_port_send_t. * eth-multiplexer/multiplexer.c: Likewise. * eth-multiplexer/device_impl.c: Fix all device_t receiver lookups. * eth-multiplexer/mig-decls.h: New file. * eth-multiplexer/mig-mutate.h: Add mutators. fu_eth-multiplexer
Diffstat (limited to 'eth-multiplexer/mig-mutate.h')
-rw-r--r--eth-multiplexer/mig-mutate.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/eth-multiplexer/mig-mutate.h b/eth-multiplexer/mig-mutate.h
index f692236e..2403c29d 100644
--- a/eth-multiplexer/mig-mutate.h
+++ b/eth-multiplexer/mig-mutate.h
@@ -23,3 +23,10 @@
end_using_port_info (port_info_t)
#define NOTIFY_IMPORTS \
import "libports/mig-decls.h";
+
+#define DEVICE_INTRAN \
+ vether_device_t begin_using_device_port (mach_port_t)
+#define DEVICE_DESTRUCTOR \
+ end_using_device (vether_device_t)
+#define DEVICE_IMPORTS \
+ import "eth-multiplexer/mig-decls.h";