mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
migration: unify the framework of socket-type channel
Currently, the only difference of tcp channel and unix channel in migration/socket.c is the way to build SocketAddress, but socket_parse() can handle these two types, so use it to instead of tcp_build_address() and unix_build_address(). The socket-type channel can be further unified based on the up, this would be helpful for us to add other socket-type channels. Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com> Message-Id: <20200806074030.174-2-longpeng2@huawei.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
3e39dac035
commit
d658f65c16
3 changed files with 26 additions and 75 deletions
|
@ -23,13 +23,8 @@
|
|||
void socket_send_channel_create(QIOTaskFunc f, void *data);
|
||||
int socket_send_channel_destroy(QIOChannel *send);
|
||||
|
||||
void tcp_start_incoming_migration(const char *host_port, Error **errp);
|
||||
void socket_start_incoming_migration(const char *str, Error **errp);
|
||||
|
||||
void tcp_start_outgoing_migration(MigrationState *s, const char *host_port,
|
||||
Error **errp);
|
||||
|
||||
void unix_start_incoming_migration(const char *path, Error **errp);
|
||||
|
||||
void unix_start_outgoing_migration(MigrationState *s, const char *path,
|
||||
Error **errp);
|
||||
void socket_start_outgoing_migration(MigrationState *s, const char *str,
|
||||
Error **errp);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue