aboutsummaryrefslogtreecommitdiff
path: root/migration/socket.h
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2018-02-28 12:05:15 +0100
committerJuan Quintela <quintela@redhat.com>2018-05-15 20:24:27 +0200
commit3854956ad7ea0a4a29f434a026eeea9bae250d0d (patch)
tree701fefac21a3d5d060e46d1babeec81f5b08b301 /migration/socket.h
parent62c1e0ca739008aaec6d3a18456f479bed61713b (diff)
migration: Export functions to create send channels
Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'migration/socket.h')
-rw-r--r--migration/socket.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/migration/socket.h b/migration/socket.h
index 6b91e9db38..528c3b0202 100644
--- a/migration/socket.h
+++ b/migration/socket.h
@@ -16,6 +16,13 @@
#ifndef QEMU_MIGRATION_SOCKET_H
#define QEMU_MIGRATION_SOCKET_H
+
+#include "io/channel.h"
+#include "io/task.h"
+
+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 tcp_start_outgoing_migration(MigrationState *s, const char *host_port,