summaryrefslogtreecommitdiffstats
path: root/dcmihandler.hpp
diff options
context:
space:
mode:
authorDeepak Kodihalli <dkodihal@in.ibm.com>2018-02-06 06:48:29 -0600
committerTom Joseph <tomjoseph@in.ibm.com>2018-02-16 02:23:06 +0000
commitdd4cff135a6436793a13cdff62498a4cccc14320 (patch)
tree920fde9d08a417625422eb17a2a08aeecf4ff761 /dcmihandler.hpp
parent0b45955f5b0be301dee64083f51ffe9c34d3e153 (diff)
downloadphosphor-host-ipmid-dd4cff135a6436793a13cdff62498a4cccc14320.tar.gz
phosphor-host-ipmid-dd4cff135a6436793a13cdff62498a4cccc14320.zip
dcmi: get sensor info: read config
This commit adds the code to read dcmi sensor config, in order to respond to the 'get sensor info' command. Resolves openbmc/openbmc#2623. Change-Id: Id661ec2c1bae214b503308577d7f825a5dfeb629 Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
Diffstat (limited to 'dcmihandler.hpp')
-rw-r--r--dcmihandler.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/dcmihandler.hpp b/dcmihandler.hpp
index 09921a0..e2a4c10 100644
--- a/dcmihandler.hpp
+++ b/dcmihandler.hpp
@@ -449,6 +449,14 @@ namespace temp_readings
namespace sensor_info
{
+ /** @brief Create response from JSON config.
+ *
+ * @param[in] config - JSON config info about DCMI sensors
+ *
+ * @return Sensor info response
+ */
+ Response createFromJson(const Json& config);
+
/** @brief Read sensor info and fill up DCMI response for the Get
* Sensor Info command. This looks at a specific
* instance.
OpenPOWER on IntegriCloud