mainloop: move out the interface update method
Move the interface update method out of the read() loop.
Signed-off-by: Patrick Venture <venture@google.com>
Change-Id: I430d20ded4efd89c691eff368d005791f0138929
diff --git a/mainloop.hpp b/mainloop.hpp
index 07128b5..d99ed91 100644
--- a/mainloop.hpp
+++ b/mainloop.hpp
@@ -147,3 +147,8 @@
std::optional<ObjectStateData>
getObject(SensorSet::container_t::const_reference sensor);
};
+
+/** @brief Given a value and map of interfaces, update values and check
+ * thresholds.
+ */
+void updateSensorInterfaces(InterfaceMap& ifaces, int64_t value);