summaryrefslogtreecommitdiffstats
path: root/src/example
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2017-05-23 18:01:54 -0400
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2017-06-04 22:40:30 -0400
commite73b2c35a375af51b6c7341e9a98f9571f76b266 (patch)
treebc9ac0dd9ce556068df973919200c1b6d063da75 /src/example
parentb604480a43a25d0645b944fb16c1268d36782d36 (diff)
downloadphosphor-dbus-monitor-e73b2c35a375af51b6c7341e9a98f9571f76b266.tar.gz
phosphor-dbus-monitor-e73b2c35a375af51b6c7341e9a98f9571f76b266.zip
Add property and property group support
Add support for defining groups of DBus properties. Groups are a list of property/interface/metadata tuples. Metadata can be used to give a property context when required. Change-Id: I5fc27f4d815b53332a2ddea2d270fde8e355dcbc Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'src/example')
-rw-r--r--src/example/example.yaml18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/example/example.yaml b/src/example/example.yaml
index 87c9790..3d60396 100644
--- a/src/example/example.yaml
+++ b/src/example/example.yaml
@@ -26,3 +26,21 @@
path: /xyz/openbmc_project/testing/inst3
- meta: path
path: /xyz/openbmc_project/testing/inst4
+
+- name: example property group
+ description: >
+ 'Like path groups, a property group is a named collection
+ of DBus property names and associated metadata.
+
+ Properties in a group must all have the same DBus type signature
+ and must be explicitly declared.'
+ class: group
+ group: property
+ type: uint32
+ members:
+ - interface: xyz.openbmc_project.Sensor.Value
+ meta: property
+ property: ValueA
+ - interface: xyz.openbmc_project.Sensor.Value
+ meta: property
+ property: ValueB
OpenPOWER on IntegriCloud