Create DBus objects
Create DBus objects for configured sensors.
Change-Id: I26e0b9bc81ce8bf1798e7f67396ace1b954a2028
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/mainloop.hpp b/mainloop.hpp
index c017ba9..cff5123 100644
--- a/mainloop.hpp
+++ b/mainloop.hpp
@@ -1,8 +1,13 @@
#pragma once
#include <string>
+#include <vector>
+#include <experimental/any>
#include <sdbusplus/server.hpp>
#include "sensorset.hpp"
+#include "interface.hpp"
+
+using Object = std::map<InterfaceType, std::experimental::any>;
/** @class MainLoop
* @brief hwmon-readd main application loop.
@@ -46,7 +51,7 @@
void shutdown() noexcept;
private:
- using mapped_type = std::tuple<SensorSet::mapped_type, std::string>;
+ using mapped_type = std::tuple<SensorSet::mapped_type, std::string, Object>;
using SensorState = std::map<SensorSet::key_type, mapped_type>;
/** @brief sdbusplus bus client connection. */