diff options
| author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-10-31 09:51:55 -0500 |
|---|---|---|
| committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-11-08 15:15:28 -0500 |
| commit | d202bfdb3afb2b22a829307b81fc144731874c91 (patch) | |
| tree | 59e83fcb8aa210f2d8449dbca94ddcd44176f0cc /example | |
| parent | 92665b2f669732e78cb7252453e0a536a7ff3397 (diff) | |
| download | phosphor-inventory-manager-d202bfdb3afb2b22a829307b81fc144731874c91.tar.gz phosphor-inventory-manager-d202bfdb3afb2b22a829307b81fc144731874c91.zip | |
Add example interfaces
Add example interfaces for testing.
Add a script that generates sdbusplus bindings for example interfaces.
Change-Id: I683ce9dca74d827d226833ed8a56f87243914e04
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'example')
| -rw-r--r-- | example/events/match2.yaml | 6 | ||||
| -rw-r--r-- | example/interfaces.yaml | 2 | ||||
| -rw-r--r-- | example/interfaces/xyz/openbmc_project/Example/Iface1.interface.yaml | 9 | ||||
| -rw-r--r-- | example/interfaces/xyz/openbmc_project/Example/Iface2.interface.yaml | 9 |
4 files changed, 23 insertions, 3 deletions
diff --git a/example/events/match2.yaml b/example/events/match2.yaml index db10099..4bf2ddd 100644 --- a/example/events/match2.yaml +++ b/example/events/match2.yaml @@ -9,14 +9,14 @@ events: type: match signature: type: signal - path: /xyz/openbmc_project/testing + path: /xyz/openbmc_project/Inventory/example interface: org.freedesktop.DBus.Properties member: PropertiesChanged filter: type: propertyChangedTo args: - - value: xyz.openbmc_project.Testing - - value: TestProperty + - value: xyz.openbmc_project.Example.Iface1 + - value: ExampleProperty1 - value: teststring action: type: destroyObject("Example") diff --git a/example/interfaces.yaml b/example/interfaces.yaml new file mode 100644 index 0000000..56b6198 --- /dev/null +++ b/example/interfaces.yaml @@ -0,0 +1,2 @@ +- xyz.openbmc_project.Example.Iface1 +- xyz.openbmc_project.Example.Iface2 diff --git a/example/interfaces/xyz/openbmc_project/Example/Iface1.interface.yaml b/example/interfaces/xyz/openbmc_project/Example/Iface1.interface.yaml new file mode 100644 index 0000000..5d11fd1 --- /dev/null +++ b/example/interfaces/xyz/openbmc_project/Example/Iface1.interface.yaml @@ -0,0 +1,9 @@ +description: > + Example interface for PIM. +properties: + - name: ExampleProperty1 + type: std::string + description: > + An example property. + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 diff --git a/example/interfaces/xyz/openbmc_project/Example/Iface2.interface.yaml b/example/interfaces/xyz/openbmc_project/Example/Iface2.interface.yaml new file mode 100644 index 0000000..09047a8 --- /dev/null +++ b/example/interfaces/xyz/openbmc_project/Example/Iface2.interface.yaml @@ -0,0 +1,9 @@ +description: > + Example interface for PIM. +properties: + - name: ExampleProperty2 + type: std::string + description: > + An example property. + +# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4 |

