summaryrefslogtreecommitdiffstats
path: root/control/functor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'control/functor.hpp')
-rw-r--r--control/functor.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/control/functor.hpp b/control/functor.hpp
index f2f3a78..2b36445 100644
--- a/control/functor.hpp
+++ b/control/functor.hpp
@@ -27,6 +27,19 @@ auto make_handler(T&& handler)
}
/**
+ * @brief Create an action function object
+ *
+ * @param[in] action - The action being created
+ *
+ * @return - The created action function object
+ */
+template <typename T>
+auto make_action(T&& action)
+{
+ return Action(std::forward<T>(action));
+}
+
+/**
* @struct Property Changed
* @brief A match filter functor for Dbus property value changed signals
*
OpenPOWER on IntegriCloud