[Fwd: Re: [gphoto-devel] EOS 350D capture]

Havoc Pennington hp at redhat.com
Tue Dec 19 07:23:05 PST 2006


Hi,

For the shared session bus from dbus_bus_get():

With old versions of dbus what you have to do is wait to get a 
Disconnected signal, and then you can unref() in response to that signal.

With new versions of dbus, you can unref at any time.

You should never disconnect() in either version.

So if you require dbus 1.0 you can unref() at any time, if you want to 
work with an old dbus release you should only unref() when the 
connection is disconnected in some way (which probably means you will 
never unref)

Havoc



More information about the dbus mailing list