Daniel P. Berrangé 5de317b8e7 src: introduce helper API for creating GSource for socket
We need to be able to create event loop watches using the
GSource API for sockets. GIOChannel is able todo this, but
we don't want to use the GIOChannel APIs for reading/writing,
and testing shows just using its GSource APIs is unreliable
on Windows.

This patch thus creates a standalone helper API for creating
a GSource for a socket file descriptor. This impl is derived
from code in QEMU's io/channel-watch.c file that was written
by myself & Paolo Bonzini & thus under Red Hat copyright.

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-02-07 15:03:53 +00:00
..
2020-01-29 14:51:40 +00:00
2020-01-30 12:32:03 +01:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-11-15 12:58:00 +01:00
2020-02-03 19:44:38 +01:00
2020-02-03 19:44:38 +01:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-11-12 17:54:01 +01:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-12-12 14:24:35 +01:00
2019-10-16 12:06:44 +02:00
2019-10-15 11:25:25 +02:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2019-11-12 17:54:01 +01:00
2019-12-17 10:04:43 +01:00
2020-02-02 16:36:58 +01:00
2020-01-07 16:40:41 +01:00
2020-01-30 12:32:03 +01:00
2020-02-03 19:44:38 +01:00
2020-01-22 18:07:09 +01:00
2020-02-03 19:44:38 +01:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:44 +02:00
2020-02-02 16:36:58 +01:00
2019-10-16 12:06:44 +02:00
2020-01-07 16:40:41 +01:00
2020-01-07 16:40:41 +01:00
2019-10-16 12:06:44 +02:00
2020-01-07 16:40:41 +01:00