Add labels
Labels are descriptive names for sensor channels. For
example a label for temp1 might be "motherboard". Labels
will be used as the final path element when creating
DBus objects so they are bound by the same restrictions
as DBus object paths.
Discover labels from the environment when scanning sysfs.
Ignore inputs that don't have a label.
Change-Id: I2aa5684447f106d99361a9834eaad43d21037d5c
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/mainloop.hpp b/mainloop.hpp
index d1fc9ca..c017ba9 100644
--- a/mainloop.hpp
+++ b/mainloop.hpp
@@ -46,7 +46,7 @@
void shutdown() noexcept;
private:
- using mapped_type = std::tuple<SensorSet::mapped_type>;
+ using mapped_type = std::tuple<SensorSet::mapped_type, std::string>;
using SensorState = std::map<SensorSet::key_type, mapped_type>;
/** @brief sdbusplus bus client connection. */