diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-05-25 23:38:37 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-06-19 16:26:48 -0400 |
commit | 0df00be00999bc3285b8b0a401b48e42fb862250 (patch) | |
tree | f1c9c332b7fede66daf5b42abc283fdbe190d98c /src/example | |
parent | 01079892b1768be2b2f28a6a8ac56422792ff930 (diff) | |
download | phosphor-dbus-monitor-0df00be00999bc3285b8b0a401b48e42fb862250.tar.gz phosphor-dbus-monitor-0df00be00999bc3285b8b0a401b48e42fb862250.zip |
Method support
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>
Diffstat (limited to 'src/example')
-rw-r--r-- | src/example/example.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/example/example.yaml b/src/example/example.yaml index 2066227..d76e3ad 100644 --- a/src/example/example.yaml +++ b/src/example/example.yaml @@ -78,6 +78,21 @@ severity: INFO message: Hello world from PDM! +- name: example method callback + description: > + 'The method callback invokes the specified DBus method.' + class: callback + callback: method + service: org.freedesktop.systemd1 + path: /org/freedesktop/systemd1 + interface: org.freedesktop.systemd1.Manager + method: StartUnit + args: + - value: foo.unit + type: string + - value: replace + type: string + - name: example callback group description: > 'Callbacks groups are simply named collections of other callbacks. |