How to disconnect from dbus?
Krzysztof
dibo20 at wp.pl
Tue Jun 7 11:13:08 PDT 2011
Hi,
I'm trying to understand how dbus work. I'm writting plugin for pidgin using
free pascal. My plugin listening for pidgin signals. I have question: How
can I disconnect from dbus session?
Example:
{ Initializes the errors }
dbus_error_init(@FDBErr);
{ Connection }
FDBConn := dbus_bus_get(DBUS_BUS_SESSION, @FDBErr);
{ Request the name of the bus }
ret := dbus_bus_request_name(FDBConn, 'im.pidgin.purple.PurpleInterface',
DBUS_NAME_FLAG_REPLACE_EXISTING, @FDBErr);
After this connection I get signals from pidgin, but what I must call to
disconnect? Even if I call dbus_connection_close or dbus_connection_unref
(which are not allowed for shared connections) I still get signals from
pidgin.
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20110607/06990272/attachment.html>
More information about the dbus
mailing list