[Spice-devel] [PATCH 17/18] Add RedsState arg to reds_handle_channel_event()
Frediano Ziglio
fziglio at redhat.com
Tue Feb 2 17:06:06 CET 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 b6fe1ae..727f4f2 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 9ee9882..21f6c44 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.4.3
More information about the Spice-devel
mailing list