]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: switch to use the GLib event loop impl
authorDaniel P. Berrangé <berrange@redhat.com>
Tue, 14 Jan 2020 12:34:09 +0000 (12:34 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 7 Feb 2020 15:03:53 +0000 (15:03 +0000)
commit946a25274c46ffff46323c62f567ae7e753aa921
tree16da1e939fdd0d2bf03cdc1877f40c5440577604
parentf8ab47cb4491dd72d866c1a96a9d94b8c3341de9
util: switch to use the GLib event loop impl

This sets the GLib event loop as the impl when calling
virEventRegisterDefaultImpl(). This remains a private
impl detail of libvirt, so applications must *NOT*
assume that a call to virEventRegisterDefaultImpl()
results in a GLib based event loop.

They should continue to use the libvirt-glib API
gvir_event_register() if they explicitly want to guarantee
a GLib event loop.

This follows the general principal that the libvirt public
API should not expose the fact that GLib is being used
internally.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/util/virevent.c