EntityManager: Rename DBusProbeObjectT to MapperGetSubTreeResponse
Reflect that it's the result of a subtree query and align the type name
with that used in bmcweb.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I02066127833737b7df04ece20da5392b52ced676
diff --git a/include/EntityManager.hpp b/include/EntityManager.hpp
index 4b5758a..540d9a6 100644
--- a/include/EntityManager.hpp
+++ b/include/EntityManager.hpp
@@ -31,7 +31,7 @@
#include <string>
// paths - > interfaces -> properties
-using DBusProbeObjectT = boost::container::flat_map<
+using MapperGetSubTreeResponse = boost::container::flat_map<
std::string,
boost::container::flat_map<
std::string,
@@ -81,7 +81,7 @@
sdbusplus::asio::object_server& objServer;
std::function<void()> _callback;
bool _passed = false;
- DBusProbeObjectT dbusProbeObjects;
+ MapperGetSubTreeResponse dbusProbeObjects;
std::vector<std::string> passedProbes;
};
@@ -91,12 +91,14 @@
PerformProbe(
const std::vector<std::string>& probeCommand,
std::shared_ptr<PerformScan>& scanPtr,
- std::function<void(FoundDeviceT&, const DBusProbeObjectT&)>&& callback);
+ std::function<void(FoundDeviceT&, const MapperGetSubTreeResponse&)>&&
+ callback);
virtual ~PerformProbe();
std::vector<std::string> _probeCommand;
std::shared_ptr<PerformScan> scan;
- std::function<void(FoundDeviceT&, const DBusProbeObjectT&)> _callback;
+ std::function<void(FoundDeviceT&, const MapperGetSubTreeResponse&)>
+ _callback;
};
inline void logDeviceAdded(const nlohmann::json& record)