[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-dbus
Subject: Re: Simplest mainloop that could possibly work
From: Simon McVittie <simon.mcvittie () collabora ! co ! uk>
Date: 2007-10-31 12:32:32
Message-ID: 20071031123232.GB12617 () carbon ! pseudorandom ! co ! uk
[Download RAW message or body]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 30 Oct 2007 at 15:13:17 -0400, Havoc Pennington wrote:
> > So, it looks like I have to bite the bullet and write a non-toy
> > mainloop. I'm having a lot of trouble grokking the Watch/Timeout stuff,
> > though, and I haven't had much luck finding useful example code.
>
> Some example code you could use is:
> - GLib bindings / main loop
> - Qt bindings / main loop
> - the main loop used by the bus daemon (which is in
> dbus/dbus-mainloop.c)
libavahi-common also has a quite nice (and small) main loop abstraction
with D-Bus integration; implementations of the abstraction include
"simple" (its own tiny select loop), GLib and Qt.
When dbus-python eventually gets pure-Python main loop support, its API will
probably be heavily inspired by libavahi-common.
Simon
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: OpenPGP key: http://www.pseudorandom.co.uk/2003/contact/ or pgp.net
iD8DBQFHKHXgWSc8zVUw7HYRAmhsAKDLTUy4Gbs7j0Kl7NN04nYZSWkJJwCdGv5r
h7sKtnLSaMosiCEbXHTq9zg=
=u8rJ
-----END PGP SIGNATURE-----
_______________________________________________
dbus mailing list
dbus@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dbus
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic