]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: import an event loop impl based on GMainContext
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)
commitf8ab47cb4491dd72d866c1a96a9d94b8c3341de9
tree9bebe25582065e81de15bd87edb609c41b125311
parent7d4350bcac251bab2ecf85bd19eb1181db87fd07
util: import an event loop impl based on GMainContext

The libvirt-glib project has provided a GMainContext based
event loop impl for applications. This imports it and sets
it up for use by libvirt as the primary event loop. This
remains a private impl detail of libvirt.

IOW, 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 principle 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>
build-aux/syntax-check.mk
src/libvirt_private.syms
src/libvirt_probes.d
src/util/Makefile.inc.am
src/util/vireventglib.c [new file with mode: 0644]
src/util/vireventglib.h [new file with mode: 0644]