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>
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 @@
* 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));
};
}