Add object info tuple
The object path, bus connection, and sdbusplus interfaces are
almost always needed together so use a tuple for passing these
around.
Change-Id: I784edae95f03d306633ccf94209faa381b91a596
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/mainloop.hpp b/mainloop.hpp
index cff5123..c5038f7 100644
--- a/mainloop.hpp
+++ b/mainloop.hpp
@@ -8,6 +8,7 @@
#include "interface.hpp"
using Object = std::map<InterfaceType, std::experimental::any>;
+using ObjectInfo = std::tuple<sdbusplus::bus::bus*, std::string, Object>;
/** @class MainLoop
* @brief hwmon-readd main application loop.
@@ -51,7 +52,7 @@
void shutdown() noexcept;
private:
- using mapped_type = std::tuple<SensorSet::mapped_type, std::string, Object>;
+ using mapped_type = std::tuple<SensorSet::mapped_type, std::string, ObjectInfo>;
using SensorState = std::map<SensorSet::key_type, mapped_type>;
/** @brief sdbusplus bus client connection. */