feat: add macro to teach sdbus-c++ about user-defined structs (#440)

This introduces SDBUSCPP_REGISTER_STRUCT macro that helps clients conveniently, in one line, teach sdbus-c++ to recognize and accept their custom C++ struct types wherever D-Bus structs are expected in a D-Bus API.

The macro saves some boilerplate that would otherwise be needed on client side for every registered struct.
This commit is contained in:
Stanislav Angelovič
2024-05-06 20:14:32 +02:00
committed by GitHub
parent e62472b210
commit 14942db075
5 changed files with 154 additions and 45 deletions
+4
View File
@@ -291,3 +291,7 @@ v2.0.0
- Add `SDBUSCPP_` prefix to CMake configuration variables to avoid conflicts with downstream projects
- Require systemd of at least v238
- Many other fixes and updates in code, tests, build system, CI, and documentation
v2.x.y
- Add SDBUSCPP_REGISTER_STRUCT macro to conveniently teach sdbus-c++ about user-defined structs
- Fix partially renamed BUILD_DOXYGEN_DOC CMake option