From f8ca6d79390b7f7fac5dbb82635dd6384810c668 Mon Sep 17 00:00:00 2001 From: Ed Tanous Date: Tue, 28 Jun 2022 12:12:03 -0700 Subject: Allow async resolver to be optional This commit adds a meson option to allow selecting which dns resolver bmcweb uses. There are use cases, like Open Compute Project Inband Management Agent, that would require not using dbus, which would require us to fall back to the asio resolver. This commit makes the existing asio resolver constructor, and async_resolve methods match the equivalents in asio (which we intended to do anyway), then adds a macro and configure option for being able to select which resolver backend to rely on. Tested: Code can now compile without sdbusplus. Signed-off-by: Ed Tanous Change-Id: I3220214367179f131a60082bdfaf7e725d35c125 --- src/webserver_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp index d3021a83d0..8150f460ad 100644 --- a/src/webserver_main.cpp +++ b/src/webserver_main.cpp @@ -85,11 +85,11 @@ static int run() redfish::RedfishService redfish(app); // Create EventServiceManager instance and initialize Config - redfish::EventServiceManager::getInstance(); + redfish::EventServiceManager::getInstance(&*io); #ifdef BMCWEB_ENABLE_REDFISH_AGGREGATION // Create RedfishAggregator instance and initialize Config - redfish::RedfishAggregator::getInstance(); + redfish::RedfishAggregator::getInstance(&*io); #endif #endif -- cgit v1.2.3