summaryrefslogtreecommitdiffstats
path: root/sensors/buildjson.cpp
Commit message (Collapse)AuthorAgeFilesLines
* conf: add ignoreDbusMinMax optionPatrick Venture2019-09-101-0/+10
| | | | | | | | | Add an optional field to the sensor configuration, s.t. it'll tell a dbus passive sensor to ignore the MinValue and MaxValue properties from dbus. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: Ia6a8c802c2dc5bf41e5e860b21d7764cc09e6b6b
* sensors: buildjson: only load min/max if type fanPatrick Venture2019-08-291-2/+17
| | | | | | | | | The min/max value in the json configuration only provide meaning in the context of a fan sensor. This patch only loads the configuration options in that case, and reports a warning if otherwise detected. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I20898ab3c87f4e9c6005683420a30c6685944c96
* sensors: buildjson: minor min/max cleanupPatrick Venture2019-08-291-10/+5
| | | | | Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I9d01753a40f1146d49e1a03a18dbea704f3fff84
* Expand conf namespaceJames Feist2019-02-261-4/+7
| | | | | | | | | Put rest of conf.hpp in the conf namespace. This is largely a sed replace, and wrapping from_json in conf namespace as it failed to build. Change-Id: I9fe5c7b2fface44618c43af2367035afc39bcb64 Signed-off-by: James Feist <james.feist@linux.intel.com>
* conf change: sensors: read and write path renamePatrick Venture2019-02-111-6/+6
| | | | | | | | Rename the readpath and writepath for camelcase styling to make all configuration variables consistent. Change-Id: I33f475075c8f40cd2029a5c0bfda950846cd5d44 Signed-off-by: Patrick Venture <venture@google.com>
* sensors: buildjson: add todo for failurePatrick Venture2019-02-081-0/+3
| | | | | | | | The daemon needs to validate the json configuration, either immediately after it's parsed or when objects are built from it. Change-Id: I52b5a558657ba1420bc4589de793cc496392f318 Signed-off-by: Patrick Venture <venture@google.com>
* add support to build sensors from jsonPatrick Venture2019-02-081-0/+88
Add support to build sensors from a json configuration file. Change-Id: Ic5bcbcd01e085ab0d4efaed314af8dc7e82b0b9d Signed-off-by: Patrick Venture <venture@google.com>
OpenPOWER on IntegriCloud