#
14c4797c |
| 24-Sep-2024 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: events: create json for events
Create JSON for the events containing their metadata and leverage that as the "message" portion of the `sd_bus_error`. This will allow unpacking the message
sdbus++: events: create json for events
Create JSON for the events containing their metadata and leverage that as the "message" portion of the `sd_bus_error`. This will allow unpacking the message on a client side back to the original exception.
Tested: ``` $ busctl --user call net.poettering.Calculator /net/poettering/calculator net.poettering.Calculator Divide xx 5 0 Call failed: {"net.poettering.Calculator.DivisionByZero":{"FOO":"unused"}} ```
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4edd76d983267f28e51c4aa41902d45f5d6da793
show more ...
|
#
a141477d |
| 20-Sep-2022 |
Patrick Williams <patrick@stwcx.xyz> |
.gitignore: remove vim and update python
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Idfffe485440ced20dd1a772e0cf2a4334da06f7a
|
#
adf03547 |
| 04-Jun-2020 |
William A. Kennington III <wak@google.com> |
build: Allow for vendored googletest This makes it easier to run the test suite outside of the CI environment but still attempts to use the system version of googletest first.
build: Allow for vendored googletest This makes it easier to run the test suite outside of the CI environment but still attempts to use the system version of googletest first. Change-Id: I32193f08243db2177b8200b0ff7e3e47ef01691f Signed-off-by: William A. Kennington III <wak@google.com> Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
7f99709b |
| 01-Jun-2020 |
Patrick Williams <patrick@stwcx.xyz> |
build: remove autotools builds Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I57027dd772b088d1d3659b23d5a1431a31b9aaa2
|
#
50981164 |
| 15-May-2020 |
Patrick Williams <patrick@stwcx.xyz> |
build: move python setuptools for future non-autotools The current setup.py.in is an autotools-generated setuptools-like install script. When building the python-only module, we don't
build: move python setuptools for future non-autotools The current setup.py.in is an autotools-generated setuptools-like install script. When building the python-only module, we don't need the complexity of autotools, but the well-supported python install behavior is for a script named 'setup.py'. In order to facilitiate creating a native setuptools setup.py, move the autotools one to a different name. This allows both to live in parallel for a bit. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I496a7891451649a06f6761f082195330a53cb967
show more ...
|
#
7c5faabe |
| 31-Jan-2020 |
Patrick Williams <patrick@stwcx.xyz> |
build: remove interface.mako autoconf gen The content in interface.mako.server.cpp.in that required autoconf to generate was moved to property.mako.prototype.hpp.in with ee6ac694c3e2
build: remove interface.mako autoconf gen The content in interface.mako.server.cpp.in that required autoconf to generate was moved to property.mako.prototype.hpp.in with ee6ac694c3e21b24ebd2f32ef55249c5eb44bccd but never removed from the autoconf generated list. Move it back to a not-.in file. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I463126db072994f395fb5fa21f4ca8ffdb9c09f0
show more ...
|
#
e57c38e9 |
| 20-Sep-2019 |
Lei YU <mine260309@gmail.com> |
Emit adding/removing interfaces for object server The object server currently either creats the objects and interfaces, or defer the signal by not adding objects. In practice, w
Emit adding/removing interfaces for object server The object server currently either creats the objects and interfaces, or defer the signal by not adding objects. In practice, we have situations that the code would like to add interfaces to an existing object, and it's not supported, or needs tricky code to workaround. Exmaples: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-bmc-code-mgmt/+/5820 https://gerrit.openbmc-project.xyz/c/openbmc/openpower-pnor-code-mgmt/+/5346 This commit adds the support by: 1. Adding emit_added() in interface.hpp and the generated server.hpp 2. Adding a enum class in object's constructor to indicate which action to do, to create the object, or adding the interface, or defer signal as before. So the user of object<> could pass `action::emit_interface_added` to the constructor to tell the object server *only* emit interface added to DBus, without emitting object added. The previous code stays the same behavior: * If `true` is passed in object's constructor, it defers emitting object added signal; * If no extra parameter is passed in object's constructor, it emits object added signal as before. Tested: 1. Make sure the openbmc builds fine with https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-logging/+/25089 because phosphor-logging uses its own server.hpp for interface, the above patch removes that. 2. Manually write a small service to verify the interfaces are added and removed by using the `emit_interface_added` action. 3. Added the unit test cases for object.hpp to check the ctor/dtor with different actions. Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: I178c5bed3c9ff39ee2ac8d143fbe9131b0753dfa
show more ...
|
#
ebdc3714 |
| 15-Mar-2019 |
William A. Kennington III <wak@google.com> |
autotools: Fix for autoconf-archive 2019.01.19 The code coverage macros from the archive changed in a backward incompatible way. This adds a workaround to autodetect either version a
autotools: Fix for autoconf-archive 2019.01.19 The code coverage macros from the archive changed in a backward incompatible way. This adds a workaround to autodetect either version and do the right thing. Change-Id: Ibb95188264f3fece4a18dbcb98f3e90f8350ff21 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
47b31887 |
| 12-Oct-2018 |
William A. Kennington III <wak@google.com> |
gitignore: Add missing /test/timer binary This was never added when the test was made Change-Id: I15655cdf131d8baef02c3856c53c79e014b9cf24 Signed-off-by: William A. Kennington I
gitignore: Add missing /test/timer binary This was never added when the test was made Change-Id: I15655cdf131d8baef02c3856c53c79e014b9cf24 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
8890e455 |
| 26-Jun-2018 |
William A. Kennington III <wak@google.com> |
gitignore: Add all autogenerated files Our gitignore is lacking definitions for most of the autogenerated files by the project. This patch aims to clean up the gitignore by adding all
gitignore: Add all autogenerated files Our gitignore is lacking definitions for most of the autogenerated files by the project. This patch aims to clean up the gitignore by adding all of the currently generated files / types to the list. Tested: Ran through a full unit test suite and none of the files are picked up anymore. Change-Id: I015776222f1750d200cc4beac13e1ac4329dd519 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
7033b5a4 |
| 09-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
Add .gitignore Change-Id: Ib651fd8da3d4f6bf8ee0efe0267971705dd4ec43 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|