Add support for createObjects action
Change-Id: I999a5e506a236eac8ca0944b0e2b003c57612e54
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/actions.hpp b/actions.hpp
index dfa1d00..634cbc9 100644
--- a/actions.hpp
+++ b/actions.hpp
@@ -3,6 +3,7 @@
#include <utility>
#include <memory>
#include "utils.hpp"
+#include "types.hpp"
namespace phosphor
{
@@ -48,6 +49,16 @@
};
}
+/** @brief Create objects action. */
+inline auto createObjects(
+ const std::map<sdbusplus::message::object_path, Object>& objs)
+{
+ return [&objs](auto&, auto & m)
+ {
+ m.createObjects(objs);
+ };
+}
+
/** @brief Set a property action.
*
* Invoke the requested method with a reference to the requested