summaryrefslogtreecommitdiff
path: root/server/main-channel.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-01-27 11:23:23 -0600
committerFrediano Ziglio <fziglio@redhat.com>2016-02-01 14:05:36 +0000
commitdeb6afc325127e7c1df6ff34f9da6ac3218e3a76 (patch)
tree4c7310d789b53b658daf151946057af022b3abd2 /server/main-channel.c
parent6806bb6d46653eb65bc4ba674770c45748276d0d (diff)
Move vdagent to RedsState struct
Also change API of reds_has_vdagent() to take RedsState arg. Removes another global variable. Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/main-channel.c')
-rw-r--r--server/main-channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/main-channel.c b/server/main-channel.c
index 1f4fcaa7..aa2b03ca 100644
--- a/server/main-channel.c
+++ b/server/main-channel.c
@@ -545,7 +545,7 @@ static void main_channel_marshall_init(RedChannelClient *rcc,
if (item->is_client_mouse_allowed) {
init.supported_mouse_modes |= SPICE_MOUSE_MODE_CLIENT;
}
- init.agent_connected = reds_has_vdagent();
+ init.agent_connected = reds_has_vdagent(reds);
init.agent_tokens = REDS_AGENT_WINDOW_SIZE;
init.multi_media_time = item->multi_media_time;
init.ram_hint = item->ram_hint;