summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRatan Gupta <ratagupt@in.ibm.com>2017-10-13 20:20:43 +0530
committerRatan Gupta <ratagupt@in.ibm.com>2018-02-20 09:30:04 +0530
commit40e0db468a22cb162d906391ea79ac757ab99d01 (patch)
treeaaead75e36710ab8da16bcb80f0ebeadb4a1381a
parent90bfaea4c69773f4f252d06fad1147a718e8b863 (diff)
downloadphosphor-dbus-monitor-40e0db468a22cb162d906391ea79ac757ab99d01.zip
phosphor-dbus-monitor-40e0db468a22cb162d906391ea79ac757ab99d01.tar.gz
Adding the section for event call back.
eg:- - name: example event callback description: > 'Callbacks are actions PDM should take when instructed to do so. Some callback types refer to a group of paths and group of properties in a similar fashion as the property watch directive. The event callback creates the event D-Bus object with the given name and the event message. eg /xyz/openbmc_project/events/test/<id>' class: callback callback: event paths: example path group properties: example property group eventName: test eventMessage: "Test configuration changed." When fully implemented, event callbacks will create DBus objects for preconfigured DBus events. Change-Id: I73d46a9bc630763cc1a74877803a638f3a8d1e1f Signed-off-by: Ratan Gupta <ratagupt@in.ibm.com>
-rw-r--r--src/example/example.yaml17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/example/example.yaml b/src/example/example.yaml
index 16cdce8..226f491 100644
--- a/src/example/example.yaml
+++ b/src/example/example.yaml
@@ -99,6 +99,23 @@
value: testing...
type: string
+- name: example event callback
+ description: >
+ 'Callbacks are actions PDM should take when instructed to do so.
+
+ Some callback types refer to a group of paths and group of properties
+ in a similar fashion as the property watch directive.
+
+ The event callback creates the event D-Bus object with the given name
+ and the event message.
+ eg /xyz/openbmc_project/events/test/<id>'
+ class: callback
+ callback: event
+ paths: example path group
+ properties: example property group
+ eventName: test
+ eventMessage: "Test configuration changed."
+
- name: example method callback
description: >
'The method callback invokes the specified D-Bus method.'
OpenPOWER on IntegriCloud