pm: hook up the new libnx apis

This commit is contained in:
Michael Scire 2022-03-22 10:21:47 -07:00 committed by SciresM
parent 51c145f6c9
commit 247852db3a
4 changed files with 11 additions and 16 deletions

View file

@ -29,7 +29,7 @@ namespace ams::pm::shell {
Result GetProcessEventInfo(ProcessEventInfo *out);
Result GetApplicationProcessIdForShell(os::ProcessId *out);
Result BoostSystemMemoryResourceLimit(u64 size);
Result EnableApplicationExtraThread();
Result EnableSystemExtraThread();
Result BoostApplicationThreadResourceLimit();
Result BoostSystemThreadResourceLimit();
}

View file

@ -26,9 +26,7 @@ namespace ams::pm::dmnt {
}
Result GetProgramId(ncm::ProgramId *out_program_id, os::ProcessId process_id) {
/* TODO: return return pmdmntGetProgramId(reinterpret_cast<u64 *>(out_program_id), static_cast<u64>(process_id)); */
AMS_UNUSED(out_program_id, process_id);
AMS_ABORT("TODO");
return pmdmntGetProgramId(reinterpret_cast<u64 *>(out_program_id), static_cast<u64>(process_id));
}
Result GetProcessId(os::ProcessId *out_process_id, const ncm::ProgramId program_id) {

View file

@ -29,15 +29,13 @@ namespace ams::pm::info {
}
Result GetAppletCurrentResourceLimitValues(pm::ResourceLimitValues *out) {
/* TODO: return pminfoGetAppletCurrentResourceLimitValues(reinterpret_cast<PmResourceLimitValues *>(out)); */
AMS_UNUSED(out);
AMS_ABORT("TODO");
static_assert(sizeof(pm::ResourceLimitValues) == sizeof(::PmResourceLimitValues));
return pminfoGetAppletCurrentResourceLimitValues(reinterpret_cast<PmResourceLimitValues *>(out));
}
Result GetAppletPeakResourceLimitValues(pm::ResourceLimitValues *out) {
/* TODO: return pminfoGetAppletPeakResourceLimitValues(reinterpret_cast<PmResourceLimitValues *>(out)); */
AMS_UNUSED(out);
AMS_ABORT("TODO");
static_assert(sizeof(pm::ResourceLimitValues) == sizeof(::PmResourceLimitValues));
return pminfoGetAppletPeakResourceLimitValues(reinterpret_cast<PmResourceLimitValues *>(out));
}
Result GetProcessInfo(ncm::ProgramLocation *out_loc, cfg::OverrideStatus *out_status, os::ProcessId process_id) {

View file

@ -50,14 +50,13 @@ namespace ams::pm::shell {
return ::pmshellBoostSystemMemoryResourceLimit(size);
}
Result EnableApplicationExtraThread() {
return ::pmshellEnableApplicationExtraThread();
Result BoostApplicationThreadResourceLimit() {
return ::pmshellBoostApplicationThreadResourceLimit();
}
#endif
Result EnableSystemExtraThread() {
/* TODO: return ::pmshellEnableSystemExtraThread(); */
AMS_ABORT("TODO");
Result BoostSystemThreadResourceLimit() {
return ::pmshellBoostSystemThreadResourceLimit();
}
}