summaryrefslogtreecommitdiffstats
path: root/src/functor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/functor.hpp')
-rw-r--r--src/functor.hpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/functor.hpp b/src/functor.hpp
new file mode 100644
index 0000000..9353763
--- /dev/null
+++ b/src/functor.hpp
@@ -0,0 +1,28 @@
+#pragma once
+
+#include "data_types.hpp"
+
+namespace phosphor
+{
+namespace dbus
+{
+namespace monitoring
+{
+
+class Monitor;
+
+template <typename T>
+auto make_condition(T&& condition)
+{
+ return Condition(std::forward<T>(condition));
+}
+
+template <typename T>
+auto make_action(T&& action)
+{
+ return Action(std::forward<T>(action));
+}
+
+} // namespace monitoring
+} // namespace dbus
+} // namespace phosphor
OpenPOWER on IntegriCloud