summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apm/interface.h
diff options
context:
space:
mode:
authorZach Hilman <zachhilman@gmail.com>2019-06-29 04:45:31 +0200
committerZach Hilman <zachhilman@gmail.com>2019-06-29 04:45:31 +0200
commit1c6e6305eab7a6e98a73d9ba5cdb880ac74d9116 (patch)
treebbabcac8371ee02f9f911f58b00daf2c24778e93 /src/core/hle/service/apm/interface.h
parentapm: Add apm:am service (diff)
downloadyuzu-1c6e6305eab7a6e98a73d9ba5cdb880ac74d9116.tar
yuzu-1c6e6305eab7a6e98a73d9ba5cdb880ac74d9116.tar.gz
yuzu-1c6e6305eab7a6e98a73d9ba5cdb880ac74d9116.tar.bz2
yuzu-1c6e6305eab7a6e98a73d9ba5cdb880ac74d9116.tar.lz
yuzu-1c6e6305eab7a6e98a73d9ba5cdb880ac74d9116.tar.xz
yuzu-1c6e6305eab7a6e98a73d9ba5cdb880ac74d9116.tar.zst
yuzu-1c6e6305eab7a6e98a73d9ba5cdb880ac74d9116.zip
Diffstat (limited to 'src/core/hle/service/apm/interface.h')
-rw-r--r--src/core/hle/service/apm/interface.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/core/hle/service/apm/interface.h b/src/core/hle/service/apm/interface.h
index 773541aa4..6d5fdf8ef 100644
--- a/src/core/hle/service/apm/interface.h
+++ b/src/core/hle/service/apm/interface.h
@@ -8,24 +8,32 @@
namespace Service::APM {
+class Controller;
+class Module;
+
class APM final : public ServiceFramework<APM> {
public:
- explicit APM(std::shared_ptr<Module> apm, const char* name);
+ explicit APM(std::shared_ptr<Module> apm, Controller& controller, const char* name);
~APM() override;
private:
void OpenSession(Kernel::HLERequestContext& ctx);
+ void GetPerformanceMode(Kernel::HLERequestContext& ctx);
std::shared_ptr<Module> apm;
+ Controller& controller;
};
class APM_Sys final : public ServiceFramework<APM_Sys> {
public:
- explicit APM_Sys();
+ explicit APM_Sys(Controller& controller);
~APM_Sys() override;
private:
void GetPerformanceEvent(Kernel::HLERequestContext& ctx);
+ void GetCurrentPerformanceConfiguration(Kernel::HLERequestContext& ctx);
+
+ Controller& controller;
};
} // namespace Service::APM