]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: make processNetDevStreamDisconnectedEvent() reusable
authorLaine Stump <laine@redhat.com>
Fri, 4 Apr 2025 20:57:21 +0000 (16:57 -0400)
committerLaine Stump <laine@redhat.com>
Fri, 11 Apr 2025 03:47:21 +0000 (23:47 -0400)
commit03a6bc7752ec73d7ea222d5386e8f4124fe51c7f
tree0aeeee6c519cd4edfcbed698570dbf354e095e91
parent51a54dc1c4ecf37d60acee1cb94252e51c5ef627
qemu: make processNetDevStreamDisconnectedEvent() reusable

We will be adding a new event whose response will be *exactly* the
same as the response to NETDEV_STREAM_DISCONNECTED. Rather than doing
a copy-paste of the complete function that does the processing, turn
that function into something more generic that takes the name of the
event as an arg (the event name is only used in log messages).

Signed-off-by: Laine Stump <laine@redhat.com>
Tested-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_driver.c