diff --git a/src/service.rs b/src/service.rs index 11b0f110e3b..b5568de2bb8 100644 --- a/src/service.rs +++ b/src/service.rs @@ -955,6 +955,14 @@ impl Service { .unwrap(), ); } + + pub fn dispatch(&self) -> &D { + &self.dispatch + } + + pub fn dispatch_mut(&mut self) -> &mut D { + &mut self.dispatch + } } impl Syscall for &mut Service