pm/sm: add ability to forward declare mitm'd services (closes #557)

This commit is contained in:
Michael Scire 2019-07-11 22:23:23 -07:00 committed by SciresM
parent 6777dd9b38
commit fc7f06dc78
6 changed files with 198 additions and 37 deletions

View file

@ -75,6 +75,12 @@ namespace sts::sm {
return impl::WaitMitm(service);
}
Result UserService::AtmosphereDeclareFutureMitm(ServiceName service) {
R_TRY(this->EnsureInitialized());
return impl::DeclareFutureMitm(this->pid, service);
}
Result UserService::AtmosphereHasService(Out<bool> out, ServiceName service) {
R_TRY(this->EnsureInitialized());
return impl::HasService(out.GetPointer(), service);