How weareaudiofile/bluez-dbus-cpp works
bluez-dbus-cpp is a C++ sdbus-c++ wrapper for BlueZ, focused on LE advertising and GATT. The principal server workflow is to create a GATT application and services/characteristics, expose them over D-Bus, then register the application with BlueZ; advertising has a parallel advertisement-registration API. The graph also preserves client proxies and socket support. Source excerpts show the service/application relationship and manager calls; other links are dashed where implementation details were not shown.
Main entry points: GattApplication1.h GATT application · GattCharacteristic1.cpp GATT characteristic · GattService1.cpp GATT service · GattManager1.h GATT manager
Components 15
GATT server
- GATT application
include/bluez-dbus-cpp/GattApplication1.h - GATT service
src/GattService1.cpp - GATT characteristic
src/GattCharacteristic1.cpp - GATT descriptor
src/GattDescriptor1.cpp - D-Bus adaptors
include/bluez-dbus-cpp/adaptor - GATT manager
include/bluez-dbus-cpp/GattManager1.h - Characteristic builder
include/bluez-dbus-cpp/GattCharacteristicBuilder.h
LE advertising
- LE advertisement
include/bluez-dbus-cpp/LEAdvertisement1.h - Advertising manager
include/bluez-dbus-cpp/LEAdvertisingManager1.h
BlueZ client
- Adapter proxy
include/bluez-dbus-cpp/proxy/Adapter1_proxy.h - Device proxy
include/bluez-dbus-cpp/proxy/Device1_proxy.h
Socket transport
- Client API
include/bluez-dbus-cpp/Client.h - Socket API
include/bluez-dbus-cpp/Socket.h
Other components
- Library user
- BlueZ daemon
Connections 14
- Library user → GATT application: creates
- GATT service → GATT application: registers with
src/GattService1.cpp - GATT application → D-Bus adaptors: exposes objects
include/bluez-dbus-cpp/GattApplication1.h - GATT characteristic → GATT service: registers with
- GATT descriptor → GATT characteristic: associates with
- Characteristic builder → GATT characteristic: builds
- Library user → GATT manager: registers application
- GATT manager → BlueZ daemon: registers application
include/bluez-dbus-cpp/GattManager1.h - Library user → LE advertisement: configures
- LE advertisement → Advertising manager: registers advertisement
include/bluez-dbus-cpp/LEAdvertisement1.h - Advertising manager → BlueZ daemon: registers advertisement
include/bluez-dbus-cpp/LEAdvertisingManager1.h - Library user → Adapter proxy: uses
- Library user → Device proxy: uses
- Client API → Socket API: uses
include/bluez-dbus-cpp/Client.h