mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 07:13:54 -06:00
slirp: add unregister_poll_fd() callback
Add a counter-part to register_poll_fd() for completeness. (so far, register_poll_fd() is called only on struct socket fd) Suggested-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
This commit is contained in:
parent
848c7092ba
commit
f6e5aa366f
6 changed files with 14 additions and 1 deletions
|
@ -191,6 +191,11 @@ static void net_slirp_register_poll_fd(int fd)
|
|||
qemu_fd_register(fd);
|
||||
}
|
||||
|
||||
static void net_slirp_unregister_poll_fd(int fd)
|
||||
{
|
||||
/* no qemu_fd_unregister */
|
||||
}
|
||||
|
||||
static const SlirpCb slirp_cb = {
|
||||
.output = net_slirp_output,
|
||||
.guest_error = net_slirp_guest_error,
|
||||
|
@ -199,6 +204,7 @@ static const SlirpCb slirp_cb = {
|
|||
.timer_free = net_slirp_timer_free,
|
||||
.timer_mod = net_slirp_timer_mod,
|
||||
.register_poll_fd = net_slirp_register_poll_fd,
|
||||
.unregister_poll_fd = net_slirp_unregister_poll_fd,
|
||||
};
|
||||
|
||||
static int net_slirp_init(NetClientState *peer, const char *model,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue