From 49eae3b568ca925e9f0f928f8fb6dd8457d7d0b0 Mon Sep 17 00:00:00 2001 From: Damien Zammit Date: Sat, 1 Aug 2020 15:05:38 +1000 Subject: libmachdev: Introduce startup notification for clean rumpdisk shutdown Message-Id: <20200801050538.273196-1-damien@zamaudio.com> --- libmachdev/ds_routines.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libmachdev/ds_routines.c') diff --git a/libmachdev/ds_routines.c b/libmachdev/ds_routines.c index 53e0c080..64080176 100644 --- a/libmachdev/ds_routines.c +++ b/libmachdev/ds_routines.c @@ -317,6 +317,16 @@ void machdev_device_init() } } +void machdev_device_shutdown() +{ + int i; + for (i = 0; i < num_emul; i++) + { + if (emulation_list[i]->shutdown) + emulation_list[i]->shutdown(); + } +} + static int demuxer (mach_msg_header_t *inp, mach_msg_header_t *outp) { -- cgit v1.2.3