summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEd Tanous <edtanous@google.com>2022-06-28 22:12:03 +0300
committerEd Tanous <edtanous@google.com>2023-05-30 23:56:15 +0300
commitf8ca6d79390b7f7fac5dbb82635dd6384810c668 (patch)
treeff1c55362a74f5a43d1c05d5d3924ab4d255f948 /src
parent86a5ac983f9715f7b1a0f8dee355906ac648e1d3 (diff)
downloadbmcweb-f8ca6d79390b7f7fac5dbb82635dd6384810c668.tar.xz
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 <edtanous@google.com> Change-Id: I3220214367179f131a60082bdfaf7e725d35c125
Diffstat (limited to 'src')
-rw-r--r--src/webserver_main.cpp4
1 files changed, 2 insertions, 2 deletions
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