Kevin Tung | c538727 | 2025-07-28 18:10:43 +0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include "common/include/software_manager.hpp" |
| 4 | |
| 5 | namespace ManagerInf = phosphor::software::manager; |
| 6 | |
| 7 | const std::string configTypeTPM = "TPM"; |
| 8 | |
| 9 | class TPMSoftwareManager : public ManagerInf::SoftwareManager |
| 10 | { |
| 11 | public: |
| 12 | TPMSoftwareManager(sdbusplus::async::context& ctx) : |
| 13 | SoftwareManager(ctx, configTypeTPM) |
| 14 | {} |
| 15 | |
| 16 | void start(); |
| 17 | |
| 18 | sdbusplus::async::task<bool> initDevice(const std::string& service, |
| 19 | const std::string& path, |
| 20 | SoftwareConfig& config) final; |
| 21 | }; |