Remove declared DBus variables from meson
For defined DBus variables (eg: DBus name, DBus object path),
we prefer to define them in the code rather than in the meson file
Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I7c08461e297f4e0da9ae521e0228ed7ff89a4d47
diff --git a/manager/json-parser.hpp b/manager/json-parser.hpp
index 28ffe4d..e7e102f 100644
--- a/manager/json-parser.hpp
+++ b/manager/json-parser.hpp
@@ -21,6 +21,8 @@
using PriorityMap =
std::unordered_map<std::string, phosphor::led::Layout::Action>;
+static constexpr auto ledGroups = "/xyz/openbmc_project/led/groups";
+
/** @brief Parse LED JSON file and output Json object
*
* @param[in] path - path of LED JSON file
@@ -110,7 +112,7 @@
for (const auto& entry : leds)
{
- fs::path tmpPath(std::string{OBJPATH});
+ fs::path tmpPath(std::string{ledGroups});
tmpPath /= entry.value("group", "");
auto objpath = tmpPath.string();
auto members = entry.value("members", empty);