[libvirt PATCH v2 39/56] util: import an event loop impl based on GMainContext

Ján Tomko jtomko at redhat.com
Sun Feb 2 08:05:31 UTC 2020


On Tue, Jan 28, 2020 at 01:11:20PM +0000, Daniel P. Berrangé wrote:
>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 principal that the libvirt public

s/principal/principle/

same in the next patch.

>API should not expose the fact that GLib is being used
>internally.
>
>Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
>---
> build-aux/syntax-check.mk |   2 +-
> po/POTFILES.in            |   1 +
> src/libvirt_private.syms  |   5 +
> src/util/Makefile.inc.am  |   2 +
> src/util/vireventglib.c   | 455 ++++++++++++++++++++++++++++++++++++++
> src/util/vireventglib.h   |  28 +++
> 6 files changed, 492 insertions(+), 1 deletion(-)
> create mode 100644 src/util/vireventglib.c
> create mode 100644 src/util/vireventglib.h
>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20200202/1956fda1/attachment-0001.sig>


More information about the libvir-list mailing list