summaryrefslogtreecommitdiffstats
path: root/control/handlers.hpp
diff options
context:
space:
mode:
authorMatthew Barth <msbarth@us.ibm.com>2017-09-28 12:18:20 -0500
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-11-17 15:43:52 +0000
commit8fa02dabe17db9761086d77c390ceb281e2936c9 (patch)
treee43360e58eec4f9947475ad680213c6128b6fb36 /control/handlers.hpp
parent336f18a541e93e2cc1719180df73ef8b357c962f (diff)
downloadphosphor-fan-presence-8fa02dabe17db9761086d77c390ceb281e2936c9.tar.gz
phosphor-fan-presence-8fa02dabe17db9761086d77c390ceb281e2936c9.zip
Stub NameOwnerChanged signal support
NameOwnerChanged signals will be used within fan control to configure set speed events for when services providing parameters to the fan control application have unexpectedly terminated. Change-Id: I04f3c7ca2842732e33dc94b0280ad4483f7f1286 Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
Diffstat (limited to 'control/handlers.hpp')
-rw-r--r--control/handlers.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/control/handlers.hpp b/control/handlers.hpp
index 79c299b..3f42d3c 100644
--- a/control/handlers.hpp
+++ b/control/handlers.hpp
@@ -30,6 +30,24 @@ auto setProperty(const char* path, const char* interface, const char* property)
};
}
+/**
+ * @brief A handler function to set/update service name owner state
+ * @details Sets or updates service name owner state used by a group where
+ * a service name without an owner represents the service no longer exists
+ *
+ * @param[in] group - Group associated with a service
+ *
+ * @return Lambda function
+ * A lambda function to set/update the service name owner state
+ */
+auto setService(Group&& group)
+{
+ return [group = std::move(group)](auto& zone, auto& name, bool hasOwner)
+ {
+ // TODO Update service name owner state list of a group
+ };
+}
+
} // namespace handler
} // namespace control
} // namespace fan
OpenPOWER on IntegriCloud