diff options
author | Lioncash <mathew1800@gmail.com> | 2020-09-25 19:13:10 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-09-25 19:23:20 -0400 |
commit | 3e4a0a13cb2f2e02bdb623d763a63a71c2c5da7a (patch) | |
tree | d9c75f026df874c9f3889bd21a7df45e7afa9221 /src/core/frontend/applets/controller.h | |
parent | 4d4afc150294483e6090626022be55b1dfdfd498 (diff) |
frontend/controller: Eliminate dependency on the global system instance
Diffstat (limited to 'src/core/frontend/applets/controller.h')
-rw-r--r-- | src/core/frontend/applets/controller.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/core/frontend/applets/controller.h b/src/core/frontend/applets/controller.h index a227f15cd0..3e49cdbb93 100644 --- a/src/core/frontend/applets/controller.h +++ b/src/core/frontend/applets/controller.h @@ -8,6 +8,10 @@ #include "common/common_types.h" +namespace Service::SM { +class ServiceManager; +} + namespace Core::Frontend { using BorderColor = std::array<u8, 4>; @@ -39,10 +43,14 @@ public: class DefaultControllerApplet final : public ControllerApplet { public: + explicit DefaultControllerApplet(Service::SM::ServiceManager& service_manager_); ~DefaultControllerApplet() override; void ReconfigureControllers(std::function<void()> callback, ControllerParameters parameters) const override; + +private: + Service::SM::ServiceManager& service_manager; }; } // namespace Core::Frontend |