summaryrefslogtreecommitdiffstats
path: root/manager.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Enable multiple actions per eventBrad Bishop2016-12-151-1/+1
| | | | | | | | Reduce the number of dbus signal callbacks by enabling multiple actions for a single event. Change-Id: I944eea6ac450c2ea9a201e724765edbef4e677b4 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Removed duplicated Holder adaptersBrad Bishop2016-12-151-62/+22
| | | | | | | | Refactor copy/pasted action/filter/interface object adapter types into a single templated framework. Change-Id: Iafbd814572a7db13fddc5314617e310fe5f0a062 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Use sdbusplus object wrapperBrad Bishop2016-11-221-1/+8
| | | | | | | | | | | Use sdbusplus::server::object::object to wrap interfaces. This is the preferred way to ensure created objects emit freedesktop ObjectManager signals. Resolves openbmc/openbmc#756 Change-Id: Ia57057e0227ed92bef77f28e42942194f5e802f3 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* build: Fix out of tree build issuesBrad Bishop2016-11-211-1/+1
| | | | | | | | Eventually server.hpp will come from an external shared library. Until then, iquote it while it lives in-tree. Change-Id: If0f7da8e2c951443fea0d623ad03a7c54a5a5ee9 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Switch to generated interface factory methodsBrad Bishop2016-11-081-0/+6
| | | | | | | | Automatically populate the association of interface with an appropriate sdbusplus server side interface binding. Change-Id: Ie46d91cf2e6726b033789be6228c10ca14a76220 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* actions: Add destroy actionBrad Bishop2016-11-081-0/+3
| | | | | | | Add an action to destroy an object on signal match. Change-Id: I23fb160bcf7507d0d0a5f2d82f1cfb24131adf76 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add actionsBrad Bishop2016-11-081-1/+5
| | | | | | | | | | Provide tooling to enable specification of pre-implemented actions to perform after a signal match. Add a default 'noop' action to be used when an action isn't specified. Change-Id: I8d3b1ef2cfc26771322820be931a61bba3ad8d94 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Enable filtering of signal matchesBrad Bishop2016-11-081-1/+2
| | | | | | | | | | Provide tooling to enable specification of pre-implemented filtering functors for signal matches. Add a default 'none' filter to be used when a filter isn't specified. Change-Id: I3549d8cf44c5f475626875fa94ca3ee8f74d6d26 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add manager skeletonBrad Bishop2016-11-081-0/+168
Add stubbed Notify implementation and register for generated signal callbacks. Add a unit test; which, at this point does little more than verify we don't coredump on startup. Change-Id: I0cda71935947c0d082612a5c52e2b7eba98516ab Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud