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

can't emit a signal without destination #98

Open idleroamer opened 3 years ago

idleroamer commented 3 years ago

The body of the {{signal.name}}_emitter in the stub.cpp.templ suggests that signals can't be simply broadcasted to be picked up by whoever client which has subscribed for signals via AddMatch. The destinations for a signal should be known beforehand for emitter function to be able to emit targeted signals which IMHO is kind of in contrast with the message bus concept of signals. I suggest to make the destination bus names optional and in case of empty list simply emit a signal without a destination.