diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-01-06 09:45:08 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-01-13 16:26:06 -0500 |
commit | 075f7a2da746d9c68395bf8bd8f45346d85ba2c9 (patch) | |
tree | 4e640920e6c64ca86c92ab86e47f33fe331b9f65 /mainloop.hpp | |
parent | 8e068d9d551d527a35968ee14bc4f468d7e937aa (diff) | |
download | phosphor-hwmon-075f7a2da746d9c68395bf8bd8f45346d85ba2c9.tar.gz phosphor-hwmon-075f7a2da746d9c68395bf8bd8f45346d85ba2c9.zip |
Create DBus objects
Create DBus objects for configured sensors.
Change-Id: I26e0b9bc81ce8bf1798e7f67396ace1b954a2028
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'mainloop.hpp')
-rw-r--r-- | mainloop.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ class MainLoop 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. */ |