summaryrefslogtreecommitdiffstats
path: root/control/handlers.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-06-02 15:20:56 -0500
committerMatthew Barth <msbarth@us.ibm.com>2017-06-26 09:19:56 -0500
commitcec5ab766709af9b713f94576b6f05bf63fc0718 (patch)
tree131c6efb4e1a9894b35542f14e7fd4a9d31bea8f /control/handlers.hpp
parentb751f32d06cb8804bdd4344f3868ca284c0c9e68 (diff)
downloadphosphor-fan-presence-cec5ab766709af9b713f94576b6f05bf63fc0718.tar.gz
phosphor-fan-presence-cec5ab766709af9b713f94576b6f05bf63fc0718.zip
Add interface to uniquely identify properties
The interface is needed on the properties stored to uniquely identify each property used in events. Change-Id: Ia062f25514d7ed04ef1023a02eecad4738711ffb Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/handlers.hpp')
-rw-r--r--control/handlers.hpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/control/handlers.hpp b/control/handlers.hpp
index 0503c53..79c299b 100644
--- a/control/handlers.hpp
+++ b/control/handlers.hpp
@@ -15,17 +15,18 @@ namespace handler
* an object's path and property names
*
* @param[in] path - Object's path name
+ * @param[in] interface - Object's interface name
* @param[in] property - Object's property name
*
* @return Lambda function
* A lambda function to set/update the property value
*/
template <typename T>
-auto setProperty(const char* path, const char* property)
+auto setProperty(const char* path, const char* interface, const char* property)
{
return [=](auto& zone, T&& arg)
{
- zone.setPropertyValue(path, property, std::forward<T>(arg));
+ zone.setPropertyValue(path, interface, property, std::forward<T>(arg));
};
}
OpenPOWER on IntegriCloud