[Spice-devel] [PATCH 11/15] Change reds_reset_vdp() to take RedsState arg

Frediano Ziglio fziglio at redhat.com
Thu Jan 14 06:33:22 PST 2016


From: Jonathon Jongsma <jjongsma at redhat.com>

---
 server/reds.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/reds.c b/server/reds.c
index b8129fb..32164f7 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -430,7 +430,7 @@ static void reds_mig_cleanup(RedsState *reds)
     }
 }
 
-static void reds_reset_vdp(void)
+static void reds_reset_vdp(RedsState *reds)
 {
     VDIPortState *state = &reds->agent_state;
     SpiceCharDeviceInterface *sif;
@@ -640,7 +640,7 @@ static void reds_agent_remove(RedsState *reds)
 {
     // TODO: agent is broken with multiple clients. also need to figure out what to do when
     // part of the clients are during target migration.
-    reds_reset_vdp();
+    reds_reset_vdp(reds);
 
     vdagent = NULL;
     reds_update_mouse_mode(reds);
-- 
2.4.3



More information about the Spice-devel mailing list