aboutsummaryrefslogtreecommitdiff
path: root/libmachdev/machdev.h
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2022-02-27 09:10:36 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-03-01 01:44:01 +0100
commitc06be8fd568acef58888e6f702c648316ef0ef64 (patch)
tree8279d852ac13d1eed1a1992fafd1fa2861fea237 /libmachdev/machdev.h
parent05ff8d177f87007df0579952d6cce421b494198b (diff)
downloadhurd-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/machdev.h')
-rw-r--r--libmachdev/machdev.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmachdev/machdev.h b/libmachdev/machdev.h
index 7ac42eed..e1833cff 100644
--- a/libmachdev/machdev.h
+++ b/libmachdev/machdev.h
@@ -27,6 +27,8 @@
#include "machdev-device_emul.h"
#include "machdev-dev_hdr.h"
+extern struct port_bucket *machdev_device_bucket;
+
void machdev_register (struct machdev_device_emulation_ops *ops);
void machdev_device_init(void);
@@ -34,6 +36,7 @@ void machdev_device_sync(void);
void * machdev_server(void *);
error_t machdev_create_device_port (size_t size, void *result);
int machdev_trivfs_init(int argc, char **argv, mach_port_t bootstrap_resume_task, const char *name, const char *path, mach_port_t *bootstrap);
+int machdev_demuxer(mach_msg_header_t *inp, mach_msg_header_t *outp);
void machdev_trivfs_server(mach_port_t bootstrap);
boolean_t machdev_is_master_device (mach_port_t port);