| commit | 2101a4472981d29e598bf4a75d933ad2f7391c6e | [log] [tgz] |
|---|---|---|
| author | Lotus Xu <xuxiaohan@bytedance.com> | Thu Dec 24 16:01:56 2020 +0800 |
| committer | Tom Joseph <rushtotom@gmail.com> | Sat Oct 02 03:27:14 2021 +0000 |
| tree | 07e0be24b0440ec03cca068e787daea043359fda | |
| parent | 29b9f31d55cff3cebd7f95ab05dc8fc8acfb2828 [diff] |
Add nameLeafProperty function
Add nameLeafProperty() to provide the function to name an object from the
object's leaf and the property name.
E.g. Below config creates the Fan0_Present on DBus:
entityID: 29
entityInstance: 13
interfaces:
xyz.openbmc_project.Inventory.Item:
Present:
Offsets:
0:
assert: true
deassert: false
type: bool
mutability: Mutability::Write|Mutability::Read
path: /xyz/openbmc_project/inventory/Fan0
readingType: assertion
sensorNamePattern: nameLeafProperty
sensorReadingType: 111
sensorType: 4
serviceInterface: org.freedesktop.DBus.Properties
Signed-off-by: Lotus Xu <xuxiaohan@bytedance.com>
Change-Id: I58190c6041530e43f03a70c852f90ef51ebe632e
To build this package, do the following steps:
1. ./bootstrap.sh
2. ./configure ${CONFIGURE_FLAGS}
3. make
To clean the repository run ./bootstrap.sh clean.