Python / C++ application D-Bus usage issues
Tanu Kaskinen
tanuk at iki.fi
Mon Dec 17 21:14:30 PST 2012
On Mon, 2012-12-17 at 21:08 -0800, Kip Warner wrote:
> On Tue, 2012-12-18 at 07:03 +0200, Tanu Kaskinen wrote:
> > Earlier you wrote:
> >
> > "I am not really sure how to deal with the Introspect message. I am
> > guessing the receiving C++ application is suppose to respond to this
> > message by sending back an XML description of its supported interface
> > (which it shouldn't have any)."
> >
> > That sounded like the C++ application wouldn't be sending any signals.
> > If the C++ application is sending signals, it needs to export objects to
> > D-Bus, which means that it will have an interface, which in turn should
> > be introspectable. So, you need to handle the Introspect message in the
> > C++ application, because the Python bindings depend on that
> > functionality.
>
> Hey Tanu. That's unfortunate. I guess I wanted my cake and to eat it
> too. So I need to remove the signal filtering so I receive the
> introspection message. When I get the message, I need to return the XML
> string defining the object's interface. I'm assuming that means the
> Python code needs to keep the proxy object. Is that correct?
I now checked the dbus-python tutorial, section "Receiving signals"[1],
and it seems that you don't need proxy objects just for receiving
signals.
[1] http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#receiving-signals
--
Tanu
More information about the dbus
mailing list