[informatique] Re: dbus_bus_get versus dbus_connection_open

"Jérôme M. Berger" jeberger at free.fr
Sun Sep 30 11:15:33 PDT 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Havoc Pennington wrote:
> You are probably just ending up with stuff in a different order, since
> bus_get() will do the register() for you prior to returning your
> DBusConnection*.
> 
> Dispatch status function will only be called when the status *changes*
> so you need to check the status at the time that you set the status
> function and if there is already stuff to dispatch, be sure you do
> that before blocking.
> 
	Thanks, I added a check and call to my dispatch function just after
the call to bus_get and that fixed my problem.

		Jerome
- --
+------------------------- Jerome M. BERGER ---------------------+
|    mailto:jeberger at free.fr      | ICQ:    238062172            |
|    http://jeberger.free.fr/     | Jabber: jeberger at jabber.fr   |
+---------------------------------+------------------------------+
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFG/+fFd0kWM4JG3k8RAhf6AJ9KMm6yiUFzwG6DVgtN6syxYzogCwCfRhW9
8tjwPnWUsuzVayn+2M1UHmY=
=350g
-----END PGP SIGNATURE-----


More information about the dbus mailing list