From d0f48adcb11d1640cc906446f6222c2b95052cb5 Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Mon, 30 Jan 2017 08:52:26 -0500 Subject: Add path conditions Add support to setProperty and destroyObject to conditionally perform their action based on the result of a condition testing functor. Change-Id: I67ded31f4a7ee0f7a29bb6edc06ebf9249cdc070 Signed-off-by: Brad Bishop --- types.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'types.hpp') diff --git a/types.hpp b/types.hpp index d2105aa..52a00ee 100644 --- a/types.hpp +++ b/types.hpp @@ -32,7 +32,8 @@ using Object = ObjectType; using Action = std::function; using Filter = std::function < bool (sdbusplus::bus::bus&, sdbusplus::message::message&, Manager&) >; - +using PathCondition = std::function < + bool (const std::string&, sdbusplus::bus::bus&, Manager&) >; } // namespace manager } // namespace inventory } // namespace phosphor -- cgit v1.2.1