Address review comments
This commit is contained in:
parent
1e0010e8aa
commit
d30085ed35
@ -9,17 +9,17 @@ namespace Service::PM {
|
|||||||
DebugMonitorService::DebugMonitorService(Core::System& system_)
|
DebugMonitorService::DebugMonitorService(Core::System& system_)
|
||||||
: ServiceFramework{system_, "pm:dmnt"} {
|
: ServiceFramework{system_, "pm:dmnt"} {
|
||||||
// clang-format off
|
// clang-format off
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
{0, nullptr, "GetExceptionProcessIdList"},
|
{0, nullptr, "GetExceptionProcessIdList"},
|
||||||
{1, nullptr, "StartProcess"},
|
{1, nullptr, "StartProcess"},
|
||||||
{2, C<&DebugMonitorService::GetProcessId>, "GetProcessId"},
|
{2, C<&DebugMonitorService::GetProcessId>, "GetProcessId"},
|
||||||
{3, nullptr, "HookToCreateProcess"},
|
{3, nullptr, "HookToCreateProcess"},
|
||||||
{4, C<&DebugMonitorService::GetApplicationProcessId>, "GetApplicationProcessId"},
|
{4, C<&DebugMonitorService::GetApplicationProcessId>, "GetApplicationProcessId"},
|
||||||
{5, nullptr, "HookToCreateApplicationProgress"},
|
{5, nullptr, "HookToCreateApplicationProcess"},
|
||||||
{6, nullptr, "ClearHook"},
|
{6, nullptr, "ClearHook"},
|
||||||
{65000, C<&DebugMonitorService::AtmosphereGetProcessInfo>, "AtmosphereGetProcessInfo"},
|
{65000, C<&DebugMonitorService::AtmosphereGetProcessInfo>, "AtmosphereGetProcessInfo"},
|
||||||
{65001, nullptr, "AtmosphereGetCurrentLimitInfo"},
|
{65001, nullptr, "AtmosphereGetCurrentLimitInfo"},
|
||||||
};
|
};
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
RegisterHandlers(functions);
|
RegisterHandlers(functions);
|
||||||
|
@ -12,11 +12,11 @@
|
|||||||
namespace Service::PM {
|
namespace Service::PM {
|
||||||
|
|
||||||
constexpr Result ResultProcessNotFound{ErrorModule::PM, 1};
|
constexpr Result ResultProcessNotFound{ErrorModule::PM, 1};
|
||||||
[[maybe_unused]] constexpr Result ResultAlreadyStarted{ErrorModule::PM, 2};
|
constexpr Result ResultAlreadyStarted{ErrorModule::PM, 2};
|
||||||
[[maybe_unused]] constexpr Result ResultNotTerminated{ErrorModule::PM, 3};
|
constexpr Result ResultNotTerminated{ErrorModule::PM, 3};
|
||||||
[[maybe_unused]] constexpr Result ResultDebugHookInUse{ErrorModule::PM, 4};
|
constexpr Result ResultDebugHookInUse{ErrorModule::PM, 4};
|
||||||
[[maybe_unused]] constexpr Result ResultApplicationRunning{ErrorModule::PM, 5};
|
constexpr Result ResultApplicationRunning{ErrorModule::PM, 5};
|
||||||
[[maybe_unused]] constexpr Result ResultInvalidSize{ErrorModule::PM, 6};
|
constexpr Result ResultInvalidSize{ErrorModule::PM, 6};
|
||||||
|
|
||||||
constexpr u64 NO_PROCESS_FOUND_PID{0};
|
constexpr u64 NO_PROCESS_FOUND_PID{0};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user