Debian Codegraph @

src/core/components/controls/amd/fan/fanmodeprovider.h

raw symbols SCIP
1 // SPDX-License-Identifier: GPL-3.0-or-later
2 // Copyright 2019 Juan Palacios <[email protected]>
3
4 #pragma once
5
6 #include "core/components/controls/igpucontrolprovider.h"
7 #include <memory>
8 #include <vector>
9
10 namespace AMD {
11
12 class FanModeProvider final
13 : public IGPUControlProvider::IProvider
14 , public IGPUControlProvider
15 {
16 public:
17 std::vector<std::unique_ptr<IControl>>
18 provideGPUControls(IGPUInfo const &gpuInfo,
19 ISWInfo const &swInfo) const override;
20
21 std::vector<std::unique_ptr<IGPUControlProvider::IProvider>> const &
22 gpuControlProviders() const final override;
23
24 static bool
25 registerProvider(std::unique_ptr<IGPUControlProvider::IProvider> &&provider);
26
27 private:
28 static std::vector<std::unique_ptr<IGPUControlProvider::IProvider>> &
29 providers_();
30
31 static bool const registered_;
32 };
33
34 } // namespace AMD