aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/psc/pm_control.cpp
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-02-21 21:55:03 -0500
committerLiam <byteslice@airmail.cc>2024-02-21 22:26:12 -0500
commit6c2d6cff19dbd466269dd33bfef8756da68da6be (patch)
tree539d7052ea656d4e29267bd266c78ec2c93c32ef /src/core/hle/service/psc/pm_control.cpp
parent8bbc209950178ca7258bfc22a08101cb30c29a58 (diff)
psc: move IPmControl, IPmModule, IPmService
Diffstat (limited to 'src/core/hle/service/psc/pm_control.cpp')
-rw-r--r--src/core/hle/service/psc/pm_control.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/core/hle/service/psc/pm_control.cpp b/src/core/hle/service/psc/pm_control.cpp
new file mode 100644
index 000000000..7dedb7662
--- /dev/null
+++ b/src/core/hle/service/psc/pm_control.cpp
@@ -0,0 +1,28 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include "core/hle/service/psc/pm_control.h"
+
+namespace Service::PSC {
+
+IPmControl::IPmControl(Core::System& system_) : ServiceFramework{system_, "psc:c"} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {0, nullptr, "Initialize"},
+ {1, nullptr, "DispatchRequest"},
+ {2, nullptr, "GetResult"},
+ {3, nullptr, "GetState"},
+ {4, nullptr, "Cancel"},
+ {5, nullptr, "PrintModuleInformation"},
+ {6, nullptr, "GetModuleInformation"},
+ {10, nullptr, "AcquireStateLock"},
+ {11, nullptr, "HasStateLock"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+}
+
+IPmControl::~IPmControl() = default;
+
+} // namespace Service::PSC