From c06be8fd568acef58888e6f702c648316ef0ef64 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sun, 27 Feb 2022 09:10:36 +0000 Subject: libmachdev: Export demuxer as machdev_demuxer and bucket pointer This will allow callers to manage their own server routine. Message-Id: <20220227091013.33112-3-damien@zamaudio.com> --- libmachdev/ds_routines.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmachdev/ds_routines.c') diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c index e89ceee0..0f8db7ed 100644 --- a/libmachdev/ds_routines.c +++ b/libmachdev/ds_routines.c @@ -328,8 +328,8 @@ machdev_device_sync() } } -static int -demuxer (mach_msg_header_t *inp, mach_msg_header_t *outp) +int +machdev_demuxer (mach_msg_header_t *inp, mach_msg_header_t *outp) { mig_routine_t routine; if ((routine = device_server_routine (inp)) || @@ -355,7 +355,7 @@ machdev_server(void *arg) /* Launch. */ do { - ports_manage_port_operations_one_thread (machdev_device_bucket, demuxer, 0); + ports_manage_port_operations_one_thread (machdev_device_bucket, machdev_demuxer, 0); } while (1); return NULL; -- cgit v1.2.3