summaryrefslogtreecommitdiffstats
path: root/server/red_tunnel_worker.c
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2011-10-05 09:05:13 +0200
committerYonit Halperin <yhalperi@redhat.com>2011-11-02 11:19:48 +0200
commit0bf518cd3daad526a16468e82c1d6c715535e9ba (patch)
tree937b1d33c82d86a5ac391335069e3115d6a40bef /server/red_tunnel_worker.c
parentbd8771adbcf3ff34d14333cf874191e8d105f612 (diff)
downloadspice-0bf518cd3daad526a16468e82c1d6c715535e9ba.tar.gz
spice-0bf518cd3daad526a16468e82c1d6c715535e9ba.tar.xz
spice-0bf518cd3daad526a16468e82c1d6c715535e9ba.zip
server: set & test channel capabilities in red_channel
The code for setting and testing channel capabilities was unnecessarily duplicated. Now it is in red_channel. RedsChannel was dropped from Reds; It was used only for holding the channels common capabilities, which are now held in RedChannel.
Diffstat (limited to 'server/red_tunnel_worker.c')
-rw-r--r--server/red_tunnel_worker.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/red_tunnel_worker.c b/server/red_tunnel_worker.c
index 6c36fecb..1e8267e8 100644
--- a/server/red_tunnel_worker.c
+++ b/server/red_tunnel_worker.c
@@ -3445,7 +3445,8 @@ static void handle_tunnel_channel_link(RedChannel *channel, RedClient *client,
}
tcc = (TunnelChannelClient*)red_channel_client_create(sizeof(TunnelChannelClient),
- channel, client, stream);
+ channel, client, stream,
+ 0, NULL, 0, NULL);
tcc->worker = worker;
tcc->worker->channel_client = tcc;