[Spice-devel] [PATCH 08/18] Add RedsState arg to reds_handle_channel_event()

Frediano Ziglio fziglio at redhat.com
Thu Feb 4 15:57:40 UTC 2016


From: Jonathon Jongsma <jjongsma at redhat.com>

---
 server/main-dispatcher.c | 2 +-
 server/reds.c            | 2 +-
 server/reds.h            | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/server/main-dispatcher.c b/server/main-dispatcher.c
index 132a693..777a44f 100644
--- a/server/main-dispatcher.c
+++ b/server/main-dispatcher.c
@@ -86,7 +86,7 @@ static void main_dispatcher_self_handle_channel_event(
                                                 int event,
                                                 SpiceChannelEventInfo *info)
 {
-    reds_handle_channel_event(event, info);
+    reds_handle_channel_event(reds, event, info);
 }
 
 static void main_dispatcher_handle_channel_event(void *opaque,
diff --git a/server/reds.c b/server/reds.c
index 5d2130d..d3b693d 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -186,7 +186,7 @@ static ChannelSecurityOptions *reds_find_channel_security(RedsState *reds, int i
     return now;
 }
 
-void reds_handle_channel_event(int event, SpiceChannelEventInfo *info)
+void reds_handle_channel_event(RedsState *reds, int event, SpiceChannelEventInfo *info)
 {
     reds->core->channel_event(event, info);
 
diff --git a/server/reds.h b/server/reds.h
index 3a05019..6a8654e 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -48,7 +48,7 @@ struct SpiceMigrateState {
 };
 
 /* main thread only */
-void reds_handle_channel_event(int event, SpiceChannelEventInfo *info);
+void reds_handle_channel_event(RedsState *reds, int event, SpiceChannelEventInfo *info);
 
 void reds_disable_mm_time(RedsState *reds);
 void reds_enable_mm_time(RedsState *reds);
-- 
2.5.0



More information about the Spice-devel mailing list