diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-02-21 16:47:56 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2023-03-13 15:39:31 +0400 |
commit | faa4ec16419c62d616fcc2dfc02d74d7fcc513d7 (patch) | |
tree | 3bab13eeecc2f98440286c6c6914ba84399e557b /util | |
parent | e2a3a2193ef2d252a1b3553e90895189a248bd22 (diff) | |
download | qemu-faa4ec16419c62d616fcc2dfc02d74d7fcc513d7.zip qemu-faa4ec16419c62d616fcc2dfc02d74d7fcc513d7.tar.gz qemu-faa4ec16419c62d616fcc2dfc02d74d7fcc513d7.tar.bz2 |
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>
Diffstat (limited to 'util')
-rw-r--r-- | util/main-loop.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/util/main-loop.c b/util/main-loop.c index 16e837f..e180c85 100644 --- a/util/main-loop.c +++ b/util/main-loop.c @@ -252,10 +252,6 @@ static int max_priority; static int glib_pollfds_idx; static int glib_n_poll_fds; -void qemu_fd_register(int fd) -{ -} - static void glib_pollfds_fill(int64_t *cur_timeout) { GMainContext *context = g_main_context_default(); @@ -414,13 +410,6 @@ void qemu_del_wait_object(HANDLE handle, WaitObjectFunc *func, void *opaque) } } -void qemu_fd_register(int fd) -{ - qemu_socket_select(fd, event_notifier_get_handle(&qemu_aio_context->notifier), - FD_READ | FD_ACCEPT | FD_CLOSE | - FD_CONNECT | FD_WRITE | FD_OOB, NULL); -} - static int pollfds_fill(GArray *pollfds, fd_set *rfds, fd_set *wfds, fd_set *xfds) { |