summaryrefslogtreecommitdiffstats
path: root/server/red_channel.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2011-09-18 10:31:38 +0300
committerYonit Halperin <yhalperi@redhat.com>2011-11-02 11:21:08 +0200
commit70d1161430fd48c46a75d0742cb30315e11bc043 (patch)
treee5f71e14d3ebd572d278b8bf3c5b4d6571ab4798 /server/red_channel.h
parentfc3aa53211a85387df52befcaa8e8f86f7e811f2 (diff)
downloadspice-70d1161430fd48c46a75d0742cb30315e11bc043.tar.gz
spice-70d1161430fd48c46a75d0742cb30315e11bc043.tar.xz
spice-70d1161430fd48c46a75d0742cb30315e11bc043.zip
server,proto: tell the clients to connect to the migration target before migraton starts
(1) send SPICE_MSG_MAIN_MIGRATE_BEGIN upon spice_server_migrate_connect (to all the clients that support it) (2) wait for SPICE_MSGC_MAIN_MIGRATE_(CONNECTED|CONNECT_ERROR) from all the relevant clients, or a timeout, in order to complete client_migrate_info monitor command (cherry picked from commit 5560c56ef05c74da5e0e0825dc1f134019593cad branch 0.8; Was modified to support the separation of main channel from reds, and multiple clients) Conflicts: server/reds.c
Diffstat (limited to 'server/red_channel.h')
-rw-r--r--server/red_channel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/red_channel.h b/server/red_channel.h
index d044253a..e30401c9 100644
--- a/server/red_channel.h
+++ b/server/red_channel.h
@@ -450,6 +450,7 @@ struct RedClient {
pthread_t thread_id;
int disconnecting;
+
};
RedClient *red_client_new(void);
@@ -457,7 +458,6 @@ MainChannelClient *red_client_get_main(RedClient *client);
// main should be set once before all the other channels are created
void red_client_set_main(RedClient *client, MainChannelClient *mcc);
-
void red_client_migrate(RedClient *client);
// disconnects all the client's channels (should be called from the client's thread)
void red_client_destroy(RedClient *client);