diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2011-10-05 09:05:13 +0200 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2011-11-02 11:19:48 +0200 |
commit | 0bf518cd3daad526a16468e82c1d6c715535e9ba (patch) | |
tree | 937b1d33c82d86a5ac391335069e3115d6a40bef /server/smartcard.c | |
parent | bd8771adbcf3ff34d14333cf874191e8d105f612 (diff) | |
download | spice-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/smartcard.c')
-rw-r--r-- | server/smartcard.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/smartcard.c b/server/smartcard.c index 056caa62..f9cafdfa 100644 --- a/server/smartcard.c +++ b/server/smartcard.c @@ -493,7 +493,9 @@ static void smartcard_connect(RedChannel *channel, RedClient *client, { RedChannelClient *rcc; - rcc = red_channel_client_create(sizeof(RedChannelClient), channel, client, stream); + rcc = red_channel_client_create(sizeof(RedChannelClient), channel, client, stream, + num_common_caps, common_caps, + num_caps, caps); red_channel_client_ack_zero_messages_window(rcc); } |