summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-01-16 14:29:11 -0600
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-02-23 23:00:42 +0100
commit7bdff80d82990ecfedbe99ded1fb09118a60e738 (patch)
tree52c6efa9d67625dceb4d7ffe2757a9590af6e928
parent9217a51b28157cfd33b5d8647cc638f055fb9e3a (diff)
downloadspice-7bdff80d82990ecfedbe99ded1fb09118a60e738.tar.gz
spice-7bdff80d82990ecfedbe99ded1fb09118a60e738.tar.xz
spice-7bdff80d82990ecfedbe99ded1fb09118a60e738.zip
Change reds_agent_remove() to take RedsState arg
-rw-r--r--server/reds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/reds.c b/server/reds.c
index c926f500..5d8ddea5 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -581,7 +581,7 @@ static void reds_update_mouse_mode(RedsState *reds)
}
}
-static void reds_agent_remove(void)
+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.
@@ -622,7 +622,7 @@ static int vdi_port_read_buf_process(int port, VDIReadBuf *buf)
case AGENT_MSG_FILTER_DISCARD:
return FALSE;
case AGENT_MSG_FILTER_PROTO_ERROR:
- reds_agent_remove();
+ reds_agent_remove(reds);
return FALSE;
}
}
@@ -630,7 +630,7 @@ static int vdi_port_read_buf_process(int port, VDIReadBuf *buf)
return FALSE;
default:
spice_warning("invalid port");
- reds_agent_remove();
+ reds_agent_remove(reds);
return FALSE;
}
}
@@ -3045,7 +3045,7 @@ static void spice_server_char_device_remove_interface(SpiceBaseInstance *sin)
spice_info("remove CHAR_DEVICE %s", char_device->subtype);
if (strcmp(char_device->subtype, SUBTYPE_VDAGENT) == 0) {
if (vdagent) {
- reds_agent_remove();
+ reds_agent_remove(reds);
}
}
#ifdef USE_SMARTCARD