#
d731d263 |
| 17-Sep-2024 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: events: create event classes
Generate an equivalent amount of exception class as the `errors.yaml` supported and convert the examples to use it.
Tested:
``` ‣ Type=error Endian=l Flags=
sdbus++: events: create event classes
Generate an equivalent amount of exception class as the `errors.yaml` supported and convert the examples to use it.
Tested:
``` ‣ Type=error Endian=l Flags=1 Version=1 Cookie=9 ReplyCookie=2 Timestamp="Tue 2024-09-17 18:21:35.649674 UTC" Sender=:1.2489 Destination=:1.2495 ErrorName=net.poettering.Calculator.DivisionByZero ErrorMessage="Attempted to divide by zero." UniqueName=:1.2489 MESSAGE "s" { STRING "Attempted to divide by zero."; }; ```
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I4b2671838639d1e8be1ccdf655b699a98b9c2116
show more ...
|
#
b4bae8f6 |
| 01-Sep-2023 |
Patrick Williams <patrick@stwcx.xyz> |
example: calculator: use YAML paths and service_names support
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ia2a51f5c9ef62715b9e65e3935c64d6da7a49f31
|
#
43fcd1ce |
| 25-Aug-2023 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: error: move error to front of namespace
To be consistent with the new 'server' and 'client' namespaces, refactor the 'error' namespace in the same way. Move 'error' to the front and use sn
sdbus++: error: move error to front of namespace
To be consistent with the new 'server' and 'client' namespaces, refactor the 'error' namespace in the same way. Move 'error' to the front and use snake_case for namespace and struct identifiers. Leave the same backwards compatibility, which can be disabled with the SDBUSPP_REMOVE_DEPRECATED_NAMESPACE guard.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I1a147a153798c84eaac3f6bf9581c6ca31ecaf4f
show more ...
|
#
b754c64a |
| 20-Apr-2023 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: move interface name to common header
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I887b85d47e4e380426973f217bb94b1bec69f7aa
|
#
5011340e |
| 18-Mar-2023 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: change binding namespace format
Change the generated binding namespace name such that the interface `xyz.openbmc_project.Foo` becomes `sdbusplus::server::xyz::openbmc_project::Foo` instead
sdbus++: change binding namespace format
Change the generated binding namespace name such that the interface `xyz.openbmc_project.Foo` becomes `sdbusplus::server::xyz::openbmc_project::Foo` instead of `sdbusplus::xyz::openbmc_project::server::Foo`. This both simplifies the namespace generation and makes the correlation from interface to binding name much more obvious.
An alias namespace to the old name is still generated so that users have a chance to migrate.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id82a5b6dcb26be8644b04bf14ddaf8a58dad8479
show more ...
|
#
1837cd59 |
| 06-Jan-2023 |
Ed Tanous <edtanous@google.com> |
Remove dead code paths
There's a few places where we call return after another return statement, or after a method that doesn't return. These are not required, and can be removed.
Change-Id: I0917
Remove dead code paths
There's a few places where we call return after another return statement, or after a method that doesn't return. These are not required, and can be removed.
Change-Id: I091716bd0eb8ad6aec7a54b66d175b348cbe00e0 Signed-off-by: Ed Tanous <edtanous@google.com>
show more ...
|
#
25e2a094 |
| 31-Aug-2022 |
Nan Zhou <nanzhoumails@gmail.com> |
bus: utility to process messages in infinite loop
This change introduces a simple function for synchronous DBus servers to start listening to incoming requests and run forever.
This can avoid dupli
bus: utility to process messages in infinite loop
This change introduces a simple function for synchronous DBus servers to start listening to incoming requests and run forever.
This can avoid duplicate while loops in server codes across repos.
Please see the following change for context. [1] https://gerrit.openbmc.org/c/openbmc/phosphor-user-manager/+/56843
Tested: the calculator server unit test passed.
Signed-off-by: Nan Zhou <nanzhoumails@gmail.com> Change-Id: I1b6485869527e938c429c035a0551ec4dbb36c99
show more ...
|
#
0f282c48 |
| 19-Nov-2021 |
Patrick Williams <patrick@stwcx.xyz> |
bus: shorten bus type
Create an alias `sdbusplus::bus_t` to `sdbusplus::bus::bus` to reduce duplication.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9f17892eed5112d4946949861488
bus: shorten bus type
Create an alias `sdbusplus::bus_t` to `sdbusplus::bus::bus` to reduce duplication.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9f17892eed5112d49469498614884c02bba86011
show more ...
|
#
127b8abe |
| 21-May-2020 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: sync from docs master .clang-format
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8077816a5ddf7a067bdf537cb46e4e32f5c4ef65
|
#
ddc0eba2 |
| 13-Feb-2020 |
Lei YU <mine260309@gmail.com> |
sdbus++: Generate initial client header
By "client-header" option, sdbus++ could generate a client header file that provides the code used by the client.
Currently it only includes the interface na
sdbus++: Generate initial client header
By "client-header" option, sdbus++ could generate a client header file that provides the code used by the client.
Currently it only includes the interface name's string in the header file, it could be extended in the future.
The client header could be merged together for all the interfaces, so that an interface library could provide a single header to represent all the interface strings.
Usage:
sdbus++ -r $(srcdir) -t $(top_builddir)/tools/sdbusplus/templates \ interface client-header <interface>
Tested: Generate the header in example and use static_assert to verify it is the same as the interface defined in the interface calss.
Signed-off-by: Lei YU <mine260309@gmail.com> Change-Id: Idafc4724efa88a2dfd37e3f7735732c45171fd88
show more ...
|
#
95269dbc |
| 31-Aug-2018 |
Patrick Venture <venture@google.com> |
update .clang-format header inclusion order
Added the header inclusion order to the .clang-format file generated these changes.
Change-Id: Ia31b21d7ea451cac0309828006bc17c27cbd5bd5 Signed-off-by: P
update .clang-format header inclusion order
Added the header inclusion order to the .clang-format file generated these changes.
Change-Id: Ia31b21d7ea451cac0309828006bc17c27cbd5bd5 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
072da3ea |
| 18-Jan-2018 |
Andrew Geissler <geissonator@yahoo.com> |
Update repo to conform to openbmc code standard
Change-Id: If1d6b1f04514367cc544c2507a845b3e9d6d3435 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
#
4edb785c |
| 03-Jul-2017 |
Patrick Williams <patrick@stwcx.xyz> |
example: create calculator server app
Change-Id: Ie2ad4ff00208056c48c0d596053b20b82f1fb3a1 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|