summaryrefslogtreecommitdiffstats
path: root/src/method.hpp
Commit message (Collapse)AuthorAgeFilesLines
* Exception processing added for CallDBusMethod::op.Alexander Soldatov2018-12-061-2/+19
| | | | | | | | | | Patch adds exception processing for CallDBusMethod::op function. It prevents phosphor-dbus-monitor crashes, when calling service doesn't exist. Change-Id: Iac9be4c14a52fa9c12eb08dfec1f4dfd68e8cdfb Signed-off-by: Alexander Soldatov <a.soldatov@yadro.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* update .clang-formatPatrick Venture2018-09-041-2/+4
| | | | | | | | Added the header inclusion order to the .clang-format file generated these changes. Change-Id: I4f51a20f469de431ee6a5ba78e3f4da39c980fab Signed-off-by: Patrick Venture <venture@google.com>
* Enable clang-formatBrad Bishop2018-03-291-80/+57
| | | | | | | Fix up errors and enable clang-format during CI builds. Change-Id: I4176b81f8b85a287af9354165e09ff66aeb9fb29 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
* Add callback contextsRatan Gupta2018-02-221-2/+2
| | | | | | | | | | | | | | | | | Add the notion of a callback context. This enables callbacks to have logic around the conditions they were invoked in. There are two context on which call back can be invoked 1) Startup: during startup all the call backs will be called 2) Signal: As part of condition match on the watched properties. Callback would behave differently based on the context. eg: eventCallback 1) Startup: Don't take any action. 2) Signal: Create the Dbus Object for the event. Change-Id: If455558798ac3e44bbd8a93de0ce1b09d2e308ae Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
* Method supportBrad Bishop2017-06-191-0/+138
Add support for a method callback. The method callback enables arbitrary DBus method calls. A sample use case could be starting a systemd unit via the sytemd DBus API. Change-Id: If25131d11497c82f862ae1f47da066c5fd8b2e2e Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
OpenPOWER on IntegriCloud