summaryrefslogtreecommitdiffstats
path: root/types.hpp
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-01-30 08:52:26 -0500
committerPatrick Williams <patrick@stwcx.xyz>2017-02-15 17:43:18 +0000
commitd0f48adcb11d1640cc906446f6222c2b95052cb5 (patch)
treee13a71aa31714f18817561fe1d3e6c38be6998f4 /types.hpp
parentc1f4798d36e63842c97692ca1a36c0975da18c09 (diff)
downloadphosphor-inventory-manager-d0f48adcb11d1640cc906446f6222c2b95052cb5.tar.gz
phosphor-inventory-manager-d0f48adcb11d1640cc906446f6222c2b95052cb5.zip
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 <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'types.hpp')
-rw-r--r--types.hpp3
1 files changed, 2 insertions, 1 deletions
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<InterfaceVariantType>;
using Action = std::function<void (sdbusplus::bus::bus&, Manager&)>;
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
OpenPOWER on IntegriCloud