Pelagicore / gdbus-codegen-glibmm

Code generator for C++ D-Bus stubs and proxies using Giomm/Glibmm
GNU Lesser General Public License v2.1
23 stars 25 forks source link

stub: Allow registering the same instance on multiple connections/paths #87

Closed mardy closed 4 years ago

mardy commented 5 years ago

(This is a WIP, as new tests for this feature are missing, and old tests are failing; I'll fix this once the code has been reviewed, to avoid updating the templates every time :-) )

Stubs can be registered on multiple connections, and also multiple times on the same connection, as long as object paths are different. This commit enables this, by turning the object registration data into an array.

Note that signals need to be emitted on each connection/path.

A check to avoid duplicate registrations (with the same connection/path) is not needed, as it's already performed by g_dbus_connection_register_object().

Fixes: #81

Signed-off-by: Alberto Mardegan amardegan@luxoft.com

martin-ejdestig commented 5 years ago

Only nits. Nice if this is all there is to do! :)