Fix power match
The power interface changed and this was never updated
Tested: Duplicate removals went away
Change-Id: I38bcfdfacb4bafa8b3287504ac2a479ae7ff1b3b
Signed-off-by: James Feist <james.feist@linux.intel.com>
diff --git a/include/Utils.hpp b/include/Utils.hpp
index 7f8076c..da3acce 100644
--- a/include/Utils.hpp
+++ b/include/Utils.hpp
@@ -41,6 +41,20 @@
modulo,
};
+namespace properties
+{
+constexpr const char* interface = "org.freedesktop.DBus.Properties";
+constexpr const char* get = "Get";
+} // namespace properties
+
+namespace power
+{
+const static constexpr char* busname = "xyz.openbmc_project.State.Host";
+const static constexpr char* interface = "xyz.openbmc_project.State.Host";
+const static constexpr char* path = "/xyz/openbmc_project/state/host0";
+const static constexpr char* property = "CurrentHostState";
+} // namespace power
+
bool findFiles(const std::filesystem::path& dirPath,
const std::string& matchString,
std::vector<std::filesystem::path>& foundPaths);