]> git.proxmox.com Git - mirror_qemu.git/commit - net/slirp.c
main-loop: remove qemu_fd_register(), win32/slirp/socket specific
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 21 Feb 2023 12:47:56 +0000 (16:47 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 13 Mar 2023 11:39:31 +0000 (15:39 +0400)
commitfaa4ec16419c62d616fcc2dfc02d74d7fcc513d7
tree3bab13eeecc2f98440286c6c6914ba84399e557b
parente2a3a2193ef2d252a1b3553e90895189a248bd22
main-loop: remove qemu_fd_register(), win32/slirp/socket specific

Open-code the socket registration where it's needed, to avoid
artificially used or unclear generic interface.

Furthermore, the following patches are going to make socket handling use
FD-only inside QEMU, but we need to handle win32 SOCKET from libslirp.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Message-Id: <20230221124802.4103554-12-marcandre.lureau@redhat.com>
include/qemu/main-loop.h
net/slirp.c
util/main-loop.c