summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-01-16 16:51:28 -0600
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-02-23 23:00:43 +0100
commit15518c60c7a548f23c26ff31b40e44f636437072 (patch)
treea0417bdc855a75e21fec7566a9a497e6922a5ab3
parent80c1e229592812e39fca469559a9780b324b5887 (diff)
downloadspice-15518c60c7a548f23c26ff31b40e44f636437072.tar.gz
spice-15518c60c7a548f23c26ff31b40e44f636437072.tar.xz
spice-15518c60c7a548f23c26ff31b40e44f636437072.zip
Change reds_get_client() 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 3acd73b6..7b6bd1a2 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -1571,7 +1571,7 @@ static int reds_find_client(RedsState *reds, RedClient *client)
}
/* should be used only when there is one client */
-static RedClient *reds_get_client(void)
+static RedClient *reds_get_client(RedsState *reds)
{
spice_assert(reds->num_clients <= 1);
@@ -2782,7 +2782,7 @@ static void reds_migrate_channels_seamless(void)
RedClient *client;
/* seamless migration is supported for only one client for now */
- client = reds_get_client();
+ client = reds_get_client(reds);
red_client_migrate(client);
}
@@ -2898,11 +2898,11 @@ static SpiceCharDeviceState *attach_to_red_agent(SpiceCharDeviceInstance *sin)
* 2.b If this happens second ==> we already have spice migrate data
* then restore state
*/
- if (!spice_char_device_client_exists(reds->agent_state.base, reds_get_client())) {
+ if (!spice_char_device_client_exists(reds->agent_state.base, reds_get_client(reds))) {
int client_added;
client_added = spice_char_device_client_add(reds->agent_state.base,
- reds_get_client(),
+ reds_get_client(reds),
TRUE, /* flow control */
REDS_VDI_PORT_NUM_RECEIVE_BUFFS,
REDS_AGENT_WINDOW_SIZE,