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-07 14:42:26 +00:00
2020-01-07 14:42:26 +00:00
2020-01-29 14:51:40 +00:00
2020-02-07 15:03:53 +00:00
2019-10-14 10:54:42 +01:00
2019-10-24 19:35:34 +02:00
2020-01-29 14:51:39 +00:00
2020-01-30 12:32:03 +01:00
2020-01-29 14:51:40 +00:00
2019-06-19 17:12:33 +02:00
2019-11-12 16:15:59 +01:00
2019-10-15 16:14:18 +02:00
2019-12-20 09:38:43 +01:00
2019-06-19 17:12:33 +02:00
2019-11-12 16:15:58 +01:00
2019-10-16 12:06:44 +02:00
2019-12-10 13:49:24 +01:00
2019-10-16 12:06:44 +02:00
2019-11-18 08:59:13 +01: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
2020-02-04 14:00:45 +00:00
2020-01-17 10:02:01 +00:00
2019-04-11 12:47:23 -04:00
2019-11-15 12:58:43 +01:00
2019-11-15 12:58:05 +01:00
2020-01-03 15:42:13 +00:00
2019-06-19 17:12:32 +02:00
2019-11-15 12:58:43 +01:00
2019-06-19 17:12:32 +02:00
2020-01-13 15:17:54 +01:00
2020-01-06 17:30:17 +01:00
2019-06-19 17:12:33 +02:00
2020-02-04 14:00:44 +00:00
2019-10-16 12:06:44 +02:00
2019-06-19 17:12:32 +02:00
2019-12-20 09:38:43 +01:00
2019-10-16 12:06:44 +02:00
2020-01-17 10:02:01 +00:00
2019-10-15 11:25:22 +02:00
2019-11-12 17:54:01 +01:00
2019-09-10 09:47:13 +02:00
2019-06-19 17:12:32 +02:00
2020-02-04 14:00:45 +00:00
2019-06-19 17:12:33 +02:00
2020-01-29 14:51:39 +00:00
2019-06-19 17:12:33 +02:00
2019-11-12 16:15:58 +01:00
2019-06-19 17:12:33 +02:00
2019-06-19 17:12:33 +02:00
2019-04-11 12:47:23 -04:00
2020-01-17 10:02:01 +00:00
2020-01-16 09:02:35 +01:00
2019-10-16 12:06:44 +02:00
2019-06-19 17:12:32 +02:00
2020-01-03 15:42:12 +00:00
2019-12-18 14:04:59 +00:00
2020-02-07 15:03:53 +00:00
2020-02-07 15:03:53 +00:00
2019-10-16 12:06:43 +02:00
2019-06-19 17:12:33 +02:00
2019-10-21 12:51:59 +02:00
2019-06-19 17:12:33 +02:00
2020-02-04 14:00:44 +00:00
2019-06-19 17:12:33 +02:00
2020-02-04 14:00:45 +00:00
2020-02-04 14:00:45 +00:00
2019-10-24 19:35:34 +02:00
2019-06-19 17:12:33 +02:00
2019-11-12 16:15:59 +01:00
2019-10-16 12:06:44 +02:00
2019-10-16 12:06:43 +02:00
2019-06-19 17:12:32 +02:00
2019-06-19 17:12:32 +02:00
2019-06-19 17:12:32 +02:00
2019-10-21 12:51:59 +02:00
2019-10-16 12:06:43 +02:00
2020-02-04 14:00:45 +00:00
2019-06-19 17:12:33 +02:00
2019-04-11 12:47:23 -04:00
2019-06-19 17:12:33 +02:00
2020-02-04 13:45:33 +01:00
2020-02-04 13:45:33 +01:00
2019-10-15 16:14:19 +02:00
2019-10-15 16:14:18 +02:00
2020-02-04 14:00:44 +00:00
2019-06-19 17:12:33 +02:00
2020-01-29 14:51:39 +00:00
2020-01-16 15:11:55 +00:00
2019-06-19 17:12:32 +02:00
2020-01-17 13:16:58 +00:00
2019-12-17 10:04:43 +01:00
2020-01-29 14:51:39 +00:00
2019-06-19 17:12:32 +02:00
2020-01-07 17:00:10 +01:00
2020-01-07 17:00:10 +01:00
2019-10-14 10:54:42 +01:00
2019-10-14 10:54:42 +01:00
2020-01-17 10:02:01 +00:00
2019-06-19 17:12:33 +02:00
2020-02-04 14:00:44 +00:00
2019-10-18 18:49:54 +01:00
2019-12-12 14:24:35 +01:00
2019-10-15 11:25:22 +02:00
2020-02-04 13:45:33 +01:00
2020-02-04 13:45:32 +01:00
2020-01-17 10:02:01 +00:00
2019-06-19 17:12:33 +02:00
2019-12-12 14:24:35 +01:00
2019-10-15 11:25:22 +02:00
2019-11-12 16:15:58 +01:00
2019-06-19 17:12:33 +02:00
2019-10-21 12:51:59 +02:00
2019-06-19 17:12:33 +02:00
2020-02-04 13:45:33 +01:00
2019-06-19 17:12:33 +02:00
2020-01-29 14:51:40 +00:00
2019-11-12 16:15:58 +01:00
2019-12-10 13:49:24 +01:00
2020-01-17 10:02:01 +00:00
2020-02-04 13:45:33 +01:00
2019-06-19 17:12:32 +02:00
2020-01-03 15:42:13 +00:00
2019-10-16 12:06:44 +02:00
2019-10-15 11:25:25 +02:00
2019-06-19 17:12:33 +02:00
2020-01-29 14:51:40 +00:00
2020-01-29 14:51:40 +00:00
2020-01-30 12:32:03 +01:00
2019-11-25 15:29:51 -05:00
2020-01-29 14:51:40 +00:00
2019-11-07 22:09:19 -05:00
2020-01-29 14:51:40 +00:00
2019-10-16 12:06:44 +02:00
2020-01-29 14:51:40 +00:00
2019-11-25 15:29:56 -05:00
2019-11-25 15:29:56 -05:00
2019-11-25 15:29:56 -05:00
2019-11-25 15:29:56 -05:00
2019-11-25 15:29:56 -05:00
2020-01-29 14:51:40 +00:00
2019-11-25 15:29:56 -05:00
2020-02-04 14:00:44 +00:00
2019-10-15 11:25:22 +02:00
2019-10-16 12:06:44 +02:00
2020-01-30 12:32:03 +01:00
2019-11-25 15:29:56 -05:00
2020-01-30 12:32:03 +01:00
2019-10-23 14:30:47 +02:00
2019-10-16 12:06:43 +02:00
2019-06-19 17:12:33 +02:00
2019-11-12 17:54:01 +01:00
2019-10-15 16:14:18 +02:00
2019-12-17 10:04:43 +01:00
2019-12-17 10:04:43 +01:00
2020-02-02 16:36:58 +01:00
2020-01-17 10:02:01 +00:00
2020-01-07 16:40:41 +01:00
2019-12-17 10:04:43 +01:00
2020-01-17 13:16:58 +00:00
2020-01-30 12:32:03 +01:00
2020-01-17 09:58:43 +00:00
2019-10-15 11:25:22 +02:00
2020-02-04 14:00:44 +00:00
2019-06-19 17:12:33 +02:00
2020-01-17 10:01:57 +00:00
2019-06-19 17:12:33 +02:00
2019-06-19 17:12:32 +02:00
2020-02-04 14:00:44 +00:00
2019-10-15 16:14:18 +02:00
2020-02-03 19:44:38 +01:00
2019-06-19 17:12:33 +02:00
2020-01-22 18:07:09 +01:00
2019-10-15 16:14:18 +02:00
2020-02-03 19:44:38 +01:00
2020-01-06 13:30:03 +00:00
2019-06-19 17:12:33 +02:00
2019-11-12 16:15:58 +01:00
2019-06-19 17:12:33 +02:00
2019-11-12 16:15:58 +01:00
2019-10-16 12:06:44 +02:00
2019-11-12 16:15:58 +01:00
2019-06-19 17:12:33 +02:00
2019-11-12 16:15:58 +01:00
2019-10-16 12:06:44 +02:00
2019-10-21 12:51:59 +02:00
2019-06-19 17:12:33 +02:00
2020-01-17 15:52:37 +01:00
2020-01-17 15:52:37 +01:00
2020-01-29 14:51:39 +00:00
2020-01-29 14:51:40 +00:00
2020-01-29 14:51:40 +00:00
2020-01-29 14:51:40 +00:00
2019-10-21 12:51:58 +02:00
2019-06-19 17:12:31 +02:00
2020-01-17 12:34:10 +01:00
2019-12-17 10:04:43 +01:00
2019-06-19 17:12:31 +02:00
2020-02-04 14:00:45 +00:00
2020-01-17 09:58:43 +00:00
2020-02-04 14:00:44 +00:00
2019-12-20 17:02:40 -05:00
2019-06-19 17:12:33 +02:00
2020-02-02 16:36:58 +01:00
2019-10-16 12:06:44 +02:00
2019-08-14 16:22:13 +02:00
2019-09-19 12:50:21 +01:00
2019-10-15 11:25:22 +02:00
2019-06-19 17:12:31 +02:00
2019-10-15 11:25:22 +02:00
2020-01-17 10:02:01 +00:00
2019-10-15 11:25:22 +02:00
2020-01-07 16:40:41 +01:00
2019-10-15 16:14:18 +02:00
2019-10-21 12:51:59 +02:00
2020-01-07 16:40:41 +01:00
2020-01-17 10:02:01 +00:00
2020-01-27 11:02:03 +00:00
2020-01-27 11:02:03 +00:00
2019-11-15 15:07:40 +01:00
2019-10-16 12:06:44 +02:00
2020-02-04 14:00:45 +00:00
2020-02-04 14:00:44 +00:00
2020-01-07 16:40:41 +01:00
2019-10-15 16:14:18 +02:00
2019-11-12 16:15:58 +01:00
2019-06-19 17:12:33 +02:00
2020-01-17 13:16:58 +00:00
2019-06-19 17:12:33 +02:00
2020-01-29 14:51:40 +00:00
2019-10-24 19:35:34 +02:00
2019-10-24 19:35:34 +02:00