summaryrefslogtreecommitdiffstats
path: root/server/smartcard.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-11-09 22:56:56 +0200
committerAlon Levy <alevy@redhat.com>2011-03-02 17:27:51 +0200
commitce03dcfbb55d38d06e3014a6c489ea82131472fc (patch)
tree332614693c3170276e042a8e061d4c79434f7253 /server/smartcard.c
parent8002a30f9ce4b8cbd00f5ff8ded6f72a297a2240 (diff)
downloadspice-ce03dcfbb55d38d06e3014a6c489ea82131472fc.tar.gz
spice-ce03dcfbb55d38d06e3014a6c489ea82131472fc.tar.xz
spice-ce03dcfbb55d38d06e3014a6c489ea82131472fc.zip
server/red_channel (all): handle MIGRATE_DATA and MIGRATE_FLUSH_DATA
Handling done in red_channel instead of per channel, using call backs for the channel specific part. Intended to reduce furthur reliance of channels on RedChannel struct. The commit makes the code harder to understand because of the artificial get_serial stuff, should later be fixed by having a joint migration header with the serial (since all channels pass it).
Diffstat (limited to 'server/smartcard.c')
-rw-r--r--server/smartcard.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/server/smartcard.c b/server/smartcard.c
index 3675cc1a..4c50dbed 100644
--- a/server/smartcard.c
+++ b/server/smartcard.c
@@ -487,7 +487,10 @@ static void smartcard_link(Channel *channel, RedsStream *stream,
smartcard_channel_release_msg_rcv_buf,
smartcard_channel_hold_pipe_item,
smartcard_channel_send_item,
- smartcard_channel_release_pipe_item);
+ smartcard_channel_release_pipe_item,
+ NULL,
+ NULL,
+ NULL);
if (!g_smartcard_channel) {
return;
}