aboutsummaryrefslogtreecommitdiff
path: root/migration/socket.h
diff options
context:
space:
mode:
authorLongpeng(Mike) <longpeng2@huawei.com>2020-08-06 15:40:29 +0800
committerDr. David Alan Gilbert <dgilbert@redhat.com>2020-08-28 13:34:52 +0100
commitd658f65c16901afd58a7ce88dcebfdefb3594924 (patch)
treebd8d862f5c1a3137bbd0948db5bbdb3d1fd42587 /migration/socket.h
parent3e39dac0354c39b4b647940e42360c6b1f3edc02 (diff)
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.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/migration/socket.h b/migration/socket.h
index 528c3b0202..891dbccceb 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