Skip to content

Commit

Permalink
Service: add (mut) getter for the dispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Jun 6, 2024
1 parent 5eed121 commit a055e4f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -955,6 +955,14 @@ impl<P: Platform, D: Dispatch> Service<P, D> {
.unwrap(),
);
}

pub fn dispatch(&self) -> &D {
&self.dispatch
}

pub fn dispatch_mut(&mut self) -> &mut D {
&mut self.dispatch
}
}

impl<P, D> Syscall for &mut Service<P, D>
Expand Down

0 comments on commit a055e4f

Please sign in to comment.