How kistler-group/sdbus-cpp works
sdbus-c++ is a high-level C++ D-Bus IPC library over sd-bus. Its principal workflow lets an application create a connection and proxy to call a remote service, or expose an object whose registered methods, properties, and signals are reachable over D-Bus. The repository also includes an optional XML-IDL-to-C++ binding generator. The graph reflects documented capabilities and indexed imports; source excerpts are partial, so some runtime dispatch details are not shown.
Main entry points: Proxy.cpp Proxy runtime · xml2cpp.cpp xml2cpp tool · Object.cpp Object runtime · Message.cpp Message encoding
Components 19
C++ API
- Connection API
include/sdbus-c++/IConnection.h - Proxy API
include/sdbus-c++/IProxy.h - Object API
include/sdbus-c++/IObject.h - Message API
include/sdbus-c++/Message.h - Type traits
include/sdbus-c++/TypeTraits.h
D-Bus Runtime
- Connection runtime
src/Connection.cpp - Proxy runtime
src/Proxy.cpp - Object runtime
src/Object.cpp - Message encoding
src/Message.cpp - Runtime interfaces
src/IConnection.h - sd-bus adapter
src/SdBus.cpp
Binding Generator
- xml2cpp tool
tools/xml2cpp-codegen/xml2cpp.cpp - XML document model
tools/xml2cpp-codegen/xml.cpp - Generator base
tools/xml2cpp-codegen/BaseGenerator.cpp - Adaptor generator
tools/xml2cpp-codegen/AdaptorGenerator.cpp - Proxy generator
tools/xml2cpp-codegen/ProxyGenerator.cpp
Other components
- C++ application
- Remote D-Bus service
- Generated C++ bindings
Connections 25
- C++ application → Connection API: creates connection
README - C++ application → Proxy API: uses proxy
README - C++ application → Object API: exposes object
README - Proxy API → Proxy runtime: implemented by
src/Proxy.cpp - Object API → Object runtime: implemented by
src/Object.cpp - Connection API → Connection runtime: implemented by
src/Connection.cpp - Connection runtime → Runtime interfaces: uses
src/Connection.cpp - Proxy runtime → Runtime interfaces: uses
src/Proxy.cpp - Object runtime → Runtime interfaces: uses
src/Object.cpp - Connection runtime → sd-bus adapter: calls sd-bus
src/Connection.cpp - Proxy runtime → Message encoding: sends calls
src/Proxy.cpp - Object runtime → Message encoding: emits signals
src/Object.cpp - Message API → Message encoding: implemented by
src/Message.cpp - Message encoding → Runtime interfaces: uses
src/Message.cpp - Type traits → Message API: types values
include/sdbus-c++/Message.h - Proxy runtime → Remote D-Bus service: calls methods
README - Remote D-Bus service → Object runtime: invokes exposed API
README - C++ application → xml2cpp tool: runs generator
README - xml2cpp tool → XML document model: parses IDL
tools/xml2cpp-codegen/xml2cpp.cpp - xml2cpp tool → Adaptor generator: selects generator
tools/xml2cpp-codegen/xml2cpp.cpp - xml2cpp tool → Proxy generator: selects generator
tools/xml2cpp-codegen/xml2cpp.cpp - Adaptor generator → Generator base: uses base
tools/xml2cpp-codegen/AdaptorGenerator.cpp - Proxy generator → Generator base: uses base
tools/xml2cpp-codegen/ProxyGenerator.cpp - Adaptor generator → Generated C++ bindings: writes bindings
README - Proxy generator → Generated C++ bindings: writes bindings
README