mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
yank: Remove dependency on qiochannel
Remove dependency on qiochannel by removing yank_generic_iochannel and letting migration and chardev use their own yank function for iochannel. Signed-off-by: Lukas Straub <lukasstraub2@web.de> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20ff143fc2db23e27cd41d38043e481376c9cec1.1616521341.git.lukasstraub2@web.de>
This commit is contained in:
parent
816f93b200
commit
1a92d6d500
11 changed files with 61 additions and 35 deletions
20
migration/yank_functions.c
Normal file
20
migration/yank_functions.c
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* migration yank functions
|
||||
*
|
||||
* Copyright (c) Lukas Straub <lukasstraub2@web.de>
|
||||
*
|
||||
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
||||
* See the COPYING file in the top-level directory.
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qapi/error.h"
|
||||
#include "io/channel.h"
|
||||
#include "yank_functions.h"
|
||||
|
||||
void migration_yank_iochannel(void *opaque)
|
||||
{
|
||||
QIOChannel *ioc = QIO_CHANNEL(opaque);
|
||||
|
||||
qio_channel_shutdown(ioc, QIO_CHANNEL_SHUTDOWN_BOTH, NULL);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue