Receiving dbus signals using low-level C API

Krishna R sith.list at gmail.com
Wed Jan 24 14:38:07 PST 2007


Havoc and John,

Thanks for your prompt replies. I looked at the code, looks like the
messages are unref'd automatically in dbus_connection_dispatch after all
dispatching is done for the message.


> It usually makes more sense to return NOT_YET_HANDLED from a signal
> handler, since other handlers may also be interested. Though if your app
> isn't using any libraries that may also be interested, it doesn't matter.


Thanks for the tip. I guess that makes sense, since the message is
automatically unref'd, it seems safer to do this.

-K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/dbus/attachments/20070124/e49d16ba/attachment.html


More information about the dbus mailing list