Python / C++ application D-Bus usage issues

Thiago Macieira thiago at kde.org
Mon Dec 17 21:57:10 PST 2012


On segunda-feira, 17 de dezembro de 2012 21.48.51, Kip Warner wrote:
> On Tue, 2012-12-18 at 07:44 +0200, Tanu Kaskinen wrote:
> > If you don't use any proxy objects, there won't be anyone calling the
> > Introspect method, so you don't need to implement support for that. (Or
> > I don't know if the add_signal_receiver() implementation also needs
> > introspection support, but I don't see any reason why it would need
> > that.)
> 
> The C++ application emits signals and I think someone was saying that
> the Python d-bus bindings automatically probe by emitting an Introspect
> method, so don't I have to respond to it in the C++ application?

DBus-Python probes if and only if you create a proxy object. We've been 
telling you for a week not to create one.

Alternatively, you should use a decent binding for your C++ side, one that 
handles the introspection automatically.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20121217/17127f6b/attachment.pgp>


More information about the dbus mailing list