summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2010-11-24 02:33:10 +0100
committerMarc-André Lureau <marcandre.lureau@redhat.com>2010-11-24 02:53:59 +0100
commit906b24058184769915eaf77b0c839007ac9d7909 (patch)
tree1302cfb4e8645e9730a7a2ea6154c97c9b56c343
parent79f63c18db17675c6e97c3289c79e8b261cec0d5 (diff)
gtk: add a couple of new TODO
-rw-r--r--gtk/channel-base.c16
-rw-r--r--gtk/channel-cursor.c2
-rw-r--r--gtk/channel-display.c2
-rw-r--r--gtk/channel-inputs.c2
-rw-r--r--gtk/channel-main.c26
-rw-r--r--gtk/channel-playback.c2
-rw-r--r--gtk/channel-record.c2
-rw-r--r--gtk/spice-channel-priv.h2
8 files changed, 54 insertions, 0 deletions
diff --git a/gtk/channel-base.c b/gtk/channel-base.c
index 6b0fa6f..d0d2785 100644
--- a/gtk/channel-base.c
+++ b/gtk/channel-base.c
@@ -83,3 +83,19 @@ void spice_channel_handle_disconnect(SpiceChannel *channel, spice_msg_in *in)
SPICE_DEBUG("%s: ts: %" PRIu64", reason: %u", __FUNCTION__,
disconnect->time_stamp, disconnect->reason);
}
+
+void spice_channel_handle_wait_for_channels(SpiceChannel *channel, spice_msg_in *in)
+{
+ spice_channel *c = channel->priv;
+ SpiceMsgWaitForChannels *wfc = spice_msg_in_parsed(in);
+
+ SPICE_DEBUG("%s TODO", __FUNCTION__);
+}
+
+void spice_channel_handle_migrate(SpiceChannel *channel, spice_msg_in *in)
+{
+ spice_channel *c = channel->priv;
+ SpiceMsgMigrate *mig = spice_msg_in_parsed(in);
+
+ SPICE_DEBUG("%s TODO", __FUNCTION__);
+}
diff --git a/gtk/channel-cursor.c b/gtk/channel-cursor.c
index 2cf7af4..693d8d8 100644
--- a/gtk/channel-cursor.c
+++ b/gtk/channel-cursor.c
@@ -351,6 +351,8 @@ static spice_msg_handler cursor_handlers[] = {
[ SPICE_MSG_PING ] = spice_channel_handle_ping,
[ SPICE_MSG_NOTIFY ] = spice_channel_handle_notify,
[ SPICE_MSG_DISCONNECTING ] = spice_channel_handle_disconnect,
+ [ SPICE_MSG_WAIT_FOR_CHANNELS ] = spice_channel_handle_wait_for_channels,
+ [ SPICE_MSG_MIGRATE ] = spice_channel_handle_migrate,
[ SPICE_MSG_CURSOR_INIT ] = cursor_handle_init,
[ SPICE_MSG_CURSOR_RESET ] = cursor_handle_reset,
diff --git a/gtk/channel-display.c b/gtk/channel-display.c
index bea4046..be62960 100644
--- a/gtk/channel-display.c
+++ b/gtk/channel-display.c
@@ -816,6 +816,8 @@ static spice_msg_handler display_handlers[] = {
[ SPICE_MSG_PING ] = spice_channel_handle_ping,
[ SPICE_MSG_NOTIFY ] = spice_channel_handle_notify,
[ SPICE_MSG_DISCONNECTING ] = spice_channel_handle_disconnect,
+ [ SPICE_MSG_WAIT_FOR_CHANNELS ] = spice_channel_handle_wait_for_channels,
+ [ SPICE_MSG_MIGRATE ] = spice_channel_handle_migrate,
[ SPICE_MSG_DISPLAY_MODE ] = display_handle_mode,
[ SPICE_MSG_DISPLAY_MARK ] = display_handle_mark,
diff --git a/gtk/channel-inputs.c b/gtk/channel-inputs.c
index d528247..3d7026a 100644
--- a/gtk/channel-inputs.c
+++ b/gtk/channel-inputs.c
@@ -199,6 +199,8 @@ static spice_msg_handler inputs_handlers[] = {
[ SPICE_MSG_PING ] = spice_channel_handle_ping,
[ SPICE_MSG_NOTIFY ] = spice_channel_handle_notify,
[ SPICE_MSG_DISCONNECTING ] = spice_channel_handle_disconnect,
+ [ SPICE_MSG_WAIT_FOR_CHANNELS ] = spice_channel_handle_wait_for_channels,
+ [ SPICE_MSG_MIGRATE ] = spice_channel_handle_migrate,
[ SPICE_MSG_INPUTS_INIT ] = inputs_handle_init,
[ SPICE_MSG_INPUTS_KEY_MODIFIERS ] = inputs_handle_modifiers,
diff --git a/gtk/channel-main.c b/gtk/channel-main.c
index fa6d0d0..1d7d592 100644
--- a/gtk/channel-main.c
+++ b/gtk/channel-main.c
@@ -508,11 +508,33 @@ static void main_handle_agent_token(SpiceChannel *channel, spice_msg_in *in)
agent_send_msg_queue(SPICE_MAIN_CHANNEL(channel), NULL);
}
+static void main_handle_migrate_begin(SpiceChannel *channel, spice_msg_in *in)
+{
+ SpiceMsgMainMigrationBegin *mig = spice_msg_in_parsed(in);
+
+ g_warning("%s: TODO", __FUNCTION__);
+}
+
+static void main_handle_migrate_switch_host(SpiceChannel *channel, spice_msg_in *in)
+{
+ SpiceMsgMainMigrationSwitchHost *mig = spice_msg_in_parsed(in);
+
+ g_warning("%s: TODO", __FUNCTION__);
+}
+
+static void main_handle_migrate_cancel(SpiceChannel *channel,
+ spice_msg_in *in G_GNUC_UNUSED)
+{
+ g_warning("%s: TODO", __FUNCTION__);
+}
+
static spice_msg_handler main_handlers[] = {
[ SPICE_MSG_SET_ACK ] = spice_channel_handle_set_ack,
[ SPICE_MSG_PING ] = spice_channel_handle_ping,
[ SPICE_MSG_NOTIFY ] = spice_channel_handle_notify,
[ SPICE_MSG_DISCONNECTING ] = spice_channel_handle_disconnect,
+ [ SPICE_MSG_WAIT_FOR_CHANNELS ] = spice_channel_handle_wait_for_channels,
+ [ SPICE_MSG_MIGRATE ] = spice_channel_handle_migrate,
[ SPICE_MSG_MAIN_INIT ] = main_handle_init,
[ SPICE_MSG_MAIN_CHANNELS_LIST ] = main_handle_channels_list,
@@ -523,6 +545,10 @@ static spice_msg_handler main_handlers[] = {
[ SPICE_MSG_MAIN_AGENT_DISCONNECTED ] = main_handle_agent_disconnected,
[ SPICE_MSG_MAIN_AGENT_DATA ] = main_handle_agent_data,
[ SPICE_MSG_MAIN_AGENT_TOKEN ] = main_handle_agent_token,
+
+ [ SPICE_MSG_MAIN_MIGRATE_BEGIN ] = main_handle_migrate_begin,
+ [ SPICE_MSG_MAIN_MIGRATE_CANCEL ] = main_handle_migrate_cancel,
+ [ SPICE_MSG_MAIN_MIGRATE_SWITCH_HOST ] = main_handle_migrate_switch_host,
};
static void spice_main_handle_msg(SpiceChannel *channel, spice_msg_in *msg)
diff --git a/gtk/channel-playback.c b/gtk/channel-playback.c
index 5cd1cd3..ec9524a 100644
--- a/gtk/channel-playback.c
+++ b/gtk/channel-playback.c
@@ -169,6 +169,8 @@ static spice_msg_handler playback_handlers[] = {
[ SPICE_MSG_PING ] = spice_channel_handle_ping,
[ SPICE_MSG_NOTIFY ] = spice_channel_handle_notify,
[ SPICE_MSG_DISCONNECTING ] = spice_channel_handle_disconnect,
+ [ SPICE_MSG_WAIT_FOR_CHANNELS ] = spice_channel_handle_wait_for_channels,
+ [ SPICE_MSG_MIGRATE ] = spice_channel_handle_migrate,
[ SPICE_MSG_PLAYBACK_DATA ] = playback_handle_data,
[ SPICE_MSG_PLAYBACK_MODE ] = playback_handle_mode,
diff --git a/gtk/channel-record.c b/gtk/channel-record.c
index ec68ab6..0f239e5 100644
--- a/gtk/channel-record.c
+++ b/gtk/channel-record.c
@@ -120,6 +120,8 @@ static spice_msg_handler record_handlers[] = {
[ SPICE_MSG_PING ] = spice_channel_handle_ping,
[ SPICE_MSG_NOTIFY ] = spice_channel_handle_notify,
[ SPICE_MSG_DISCONNECTING ] = spice_channel_handle_disconnect,
+ [ SPICE_MSG_WAIT_FOR_CHANNELS ] = spice_channel_handle_wait_for_channels,
+ [ SPICE_MSG_MIGRATE ] = spice_channel_handle_migrate,
[ SPICE_MSG_RECORD_START ] = record_handle_start,
[ SPICE_MSG_RECORD_STOP ] = record_handle_stop,
diff --git a/gtk/spice-channel-priv.h b/gtk/spice-channel-priv.h
index 88657b8..fea79a5 100644
--- a/gtk/spice-channel-priv.h
+++ b/gtk/spice-channel-priv.h
@@ -107,6 +107,8 @@ void spice_channel_handle_set_ack(SpiceChannel *channel, spice_msg_in *in);
void spice_channel_handle_ping(SpiceChannel *channel, spice_msg_in *in);
void spice_channel_handle_notify(SpiceChannel *channel, spice_msg_in *in);
void spice_channel_handle_disconnect(SpiceChannel *channel, spice_msg_in *in);
+void spice_channel_handle_wait_for_channels(SpiceChannel *channel, spice_msg_in *in);
+void spice_channel_handle_migrate(SpiceChannel *channel, spice_msg_in *in);
G_END_DECLS