diff options
author | Damien Zammit <damien@zamaudio.com> | 2022-02-27 09:10:36 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-03-01 01:44:01 +0100 |
commit | c06be8fd568acef58888e6f702c648316ef0ef64 (patch) | |
tree | 8279d852ac13d1eed1a1992fafd1fa2861fea237 /libmachdev/ds_routines.c | |
parent | 05ff8d177f87007df0579952d6cce421b494198b (diff) | |
download | hurd-c06be8fd568acef58888e6f702c648316ef0ef64.tar.gz hurd-c06be8fd568acef58888e6f702c648316ef0ef64.tar.bz2 hurd-c06be8fd568acef58888e6f702c648316ef0ef64.zip |
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>
Diffstat (limited to 'libmachdev/ds_routines.c')
-rw-r--r-- | libmachdev/ds_routines.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |