]> git.proxmox.com Git - mirror_qemu.git/commit - net/slirp.c
net: slirp: add support for CFI-friendly timer API
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 11 Apr 2022 07:39:16 +0000 (09:39 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 12 May 2022 10:29:44 +0000 (12:29 +0200)
commit6222e55d134162e87062326a773eb7c9f9d13834
tree6b7e079b0c570da3358447cebb27540519325a66
parentbce63ded2066a21cc1f5922d0bf667123123d6f6
net: slirp: add support for CFI-friendly timer API

libslirp 4.7 introduces a CFI-friendly version of the .timer_new callback.
The new callback replaces the function pointer with an enum; invoking the
callback is done with a new function slirp_handle_timer.

Support the new API so that CFI can be made compatible with using a system
libslirp.

Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Marc-André Lureau <malureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
net/slirp.c