From c1685eb975f84c5df38f20eb4698ede36a1653e1 Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Tue, 8 Apr 2014 17:53:55 +0200 Subject: 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 --- eth-multiplexer/mig-mutate.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'eth-multiplexer/mig-mutate.h') 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"; -- cgit v1.2.3