log-resolve: reduce unnecessary dependencies
Clean up the executable and meson to reduce unnecessary dependencies
on JSON and sdbusplus::async.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia3b1a27108b3e80c4dfac562e00d2d961a28994b
diff --git a/log_resolve_main.cpp b/log_resolve_main.cpp
index fee3afa..6924c34 100644
--- a/log_resolve_main.cpp
+++ b/log_resolve_main.cpp
@@ -1,11 +1,11 @@
#include <CLI/CLI.hpp>
#include <phosphor-logging/commit.hpp>
-#include <xyz/openbmc_project/Logging/Entry/client.hpp>
+#include <xyz/openbmc_project/Logging/Entry/common.hpp>
#include <iostream>
#include <string>
-using Proxy = sdbusplus::client::xyz::openbmc_project::logging::Entry<>;
+using Interface = sdbusplus::common::xyz::openbmc_project::logging::Entry;
int main(int argc, char** argv)
{
@@ -25,8 +25,8 @@
{
if (*idOpt)
{
- path = std::string(Proxy::namespace_path::value) + "/" +
- std::string(Proxy::namespace_path::entry) + "/" +
+ path = std::string(Interface::namespace_path::value) + "/" +
+ std::string(Interface::namespace_path::entry) + "/" +
std::to_string(id);
lg2::resolve(path);
}
diff --git a/meson.build b/meson.build
index 5fd21a2..af62302 100644
--- a/meson.build
+++ b/meson.build
@@ -200,13 +200,7 @@
executable(
'log-resolve',
'log_resolve_main.cpp',
- dependencies: [
- CLI11_dep,
- nlohmann_json_dep,
- pdi_dep,
- phosphor_logging_dep,
- sdbusplus_dep,
- ],
+ dependencies: [CLI11_dep, pdi_dep, phosphor_logging_dep],
install: true,
)