Add glib support to main loop
commit69e5bb68a5e95286edd59c3ce34c6f7bae5b5548
authorAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Aug 2011 13:12:52 +0000 (22 08:12 -0500)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 1 Sep 2011 18:12:33 +0000 (1 13:12 -0500)
treeb971ab785ae6a1ef08b33242dc2b4910821f0799
parent70d705fd46ccd7afe1d0ad07a6f1ee2101a979db
Add glib support to main loop

This allows GSources to be used to register callback events in QEMU.  This is
useful as it allows us to take greater advantage of glib and also because it
allows us to write code that is more easily testable outside of QEMU since we
can make use of glib's main loop in unit tests.

All new code should use glib's callback mechanisms for registering fd events
which are very well documented at:

http://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html

And:

http://developer.gnome.org/gio/stable/

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vl.c