[Spice-devel] [PATCH 02/15] Change reds_on_main_mouse_mode_request() to take RedsState arg
Frediano Ziglio
fziglio at redhat.com
Tue Jan 19 06:29:35 PST 2016
From: Jonathon Jongsma <jjongsma at redhat.com>
---
server/main-channel.c | 2 +-
server/reds.c | 2 +-
server/reds.h | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/server/main-channel.c b/server/main-channel.c
index 1d949ac..685e578 100644
--- a/server/main-channel.c
+++ b/server/main-channel.c
@@ -926,7 +926,7 @@ static int main_channel_handle_parsed(RedChannelClient *rcc, uint32_t size, uint
((SpiceMsgcMainMigrateDstDoSeamless *)message)->src_version);
break;
case SPICE_MSGC_MAIN_MOUSE_MODE_REQUEST:
- reds_on_main_mouse_mode_request(message, size);
+ reds_on_main_mouse_mode_request(reds, message, size);
break;
case SPICE_MSGC_PONG: {
SpiceMsgPing *ping = (SpiceMsgPing *)message;
diff --git a/server/reds.c b/server/reds.c
index 0455f45..e3e0c97 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1116,7 +1116,7 @@ void reds_on_main_migrate_connected(RedsState *reds, int seamless)
}
}
-void reds_on_main_mouse_mode_request(void *message, size_t size)
+void reds_on_main_mouse_mode_request(RedsState *reds, void *message, size_t size)
{
switch (((SpiceMsgcMainMouseModeRequest *)message)->mode) {
case SPICE_MOUSE_MODE_CLIENT:
diff --git a/server/reds.h b/server/reds.h
index 5d71a41..6f20128 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -103,7 +103,7 @@ void reds_on_main_migrate_connected(RedsState *reds, int seamless); //should be
// are connected to the target
int reds_handle_migrate_data(MainChannelClient *mcc,
SpiceMigrateDataMain *mig_data, uint32_t size);
-void reds_on_main_mouse_mode_request(void *message, size_t size);
+void reds_on_main_mouse_mode_request(RedsState *reds, void *message, size_t size);
/* migration dest side: returns whether it can support seamless migration
* with the given src migration protocol version */
int reds_on_migrate_dst_set_seamless(MainChannelClient *mcc, uint32_t src_version);
--
2.4.3
More information about the Spice-devel
mailing list