Jagpal Singh Gill | ca8c7e9 | 2024-11-02 16:51:48 -0700 | [diff] [blame^] | 1 | #pragma once |
| 2 | |
| 3 | #include <sdbusplus/async.hpp> |
| 4 | |
| 5 | #include <set> |
| 6 | #include <string> |
| 7 | |
| 8 | namespace cable |
| 9 | { |
| 10 | |
| 11 | class Config |
| 12 | { |
| 13 | public: |
| 14 | static constexpr auto configFileDir = "/var/lib/cablemonitor"; |
| 15 | static constexpr auto configFileName = "cable-config.json"; |
| 16 | explicit Config() = default; |
| 17 | |
| 18 | using Cables = std::set<std::string>; |
| 19 | |
| 20 | /** Process the configuration file */ |
| 21 | static auto processConfig(std::string configFile) |
| 22 | -> sdbusplus::async::task<Cables>; |
| 23 | }; |
| 24 | |
| 25 | } // namespace cable |