diff options
author | Longpeng(Mike) <longpeng2@huawei.com> | 2020-08-06 15:40:29 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2020-08-28 13:34:52 +0100 |
commit | d658f65c16901afd58a7ce88dcebfdefb3594924 (patch) | |
tree | bd8d862f5c1a3137bbd0948db5bbdb3d1fd42587 /migration/socket.h | |
parent | 3e39dac0354c39b4b647940e42360c6b1f3edc02 (diff) | |
download | qemu-d658f65c16901afd58a7ce88dcebfdefb3594924.zip qemu-d658f65c16901afd58a7ce88dcebfdefb3594924.tar.gz qemu-d658f65c16901afd58a7ce88dcebfdefb3594924.tar.bz2 |
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>
Diffstat (limited to 'migration/socket.h')
-rw-r--r-- | migration/socket.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/migration/socket.h b/migration/socket.h index 528c3b0..891dbcc 100644 --- a/migration/socket.h +++ b/migration/socket.h @@ -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 |