Add support for callbacks
Callbacks are the response in the PDM 'trigger->response' model.
Add general support for implementing callbacks and implement
a log to systemd journal using that framework.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I8bead5368ee5472a02b47e8bba9e9df3a1f346bc
diff --git a/src/example/example.yaml b/src/example/example.yaml
index 4e216cd..171aeaa 100644
--- a/src/example/example.yaml
+++ b/src/example/example.yaml
@@ -53,3 +53,24 @@
watch: property
paths: example path group
properties: example property group
+
+- name: example journal 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 journal callback logs the specified message to the systemd journal
+ with the specified severity.
+
+ Additionally, the journal callback will add to the journal key value
+ pair metadata for each property in the specified property group with
+ the key being the property element metadata and the value being the
+ property value.'
+ class: callback
+ callback: journal
+ paths: example path group
+ properties: example property group
+ severity: INFO
+ message: Hello world from PDM!