summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apm
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-10-15 04:50:04 +0200
committerbunnei <bunneidev@gmail.com>2017-10-15 04:50:04 +0200
commit72eeca1f037261ca2802da79ff1feff813e26e48 (patch)
tree19c5b2e89cd832f8a87dcc82e415553dceb01060 /src/core/hle/service/apm
parenthle: Initial implementation of NX service framework and IPC. (diff)
downloadyuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.gz
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.bz2
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.lz
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.xz
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.tar.zst
yuzu-72eeca1f037261ca2802da79ff1feff813e26e48.zip
Diffstat (limited to 'src/core/hle/service/apm')
-rw-r--r--src/core/hle/service/apm/apm.cpp27
-rw-r--r--src/core/hle/service/apm/apm.h22
2 files changed, 49 insertions, 0 deletions
diff --git a/src/core/hle/service/apm/apm.cpp b/src/core/hle/service/apm/apm.cpp
new file mode 100644
index 000000000..37b5bd647
--- /dev/null
+++ b/src/core/hle/service/apm/apm.cpp
@@ -0,0 +1,27 @@
+// Copyright 2017 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#include "common/logging/log.h"
+#include "core/hle/ipc_helpers.h"
+#include "core/hle/service/apm/apm.h"
+
+namespace Service {
+namespace APM {
+
+void InstallInterfaces(SM::ServiceManager& service_manager) {
+ std::make_shared<APM>()->InstallAsService(service_manager);
+}
+
+APM::APM() : ServiceFramework("apm") {
+ static const FunctionInfo functions[] = {
+ {0x00000000, nullptr, "OpenSession"},
+ {0x00000001, nullptr, "GetPerformanceMode"},
+ };
+ RegisterHandlers(functions);
+}
+
+APM::~APM() = default;
+
+} // namespace APM
+} // namespace Service
diff --git a/src/core/hle/service/apm/apm.h b/src/core/hle/service/apm/apm.h
new file mode 100644
index 000000000..ce6ac0f66
--- /dev/null
+++ b/src/core/hle/service/apm/apm.h
@@ -0,0 +1,22 @@
+// Copyright 2017 Citra Emulator Project
+// Licensed under GPLv2 or any later version
+// Refer to the license.txt file included.
+
+#pragma once
+
+#include "core/hle/service/service.h"
+
+namespace Service {
+namespace APM {
+
+class APM final : public ServiceFramework<APM> {
+public:
+ explicit APM();
+ ~APM();
+};
+
+/// Registers all AM services with the specified service manager.
+void InstallInterfaces(SM::ServiceManager& service_manager);
+
+} // namespace APM
+} // namespace Service