From da7114d751fdc4d3cfae1f97b3d973bbb0e03584 Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Sun, 24 Jun 2012 14:58:27 +0300 Subject: spicevmc: employ SpiceCharDeviceState for managing reading from the guest device This patch and the following one do not introduce tokening to the spicevmc channel. But this can be done easily later, by setting the appropriate variables in SpiceCharDeviceState (after adding the appropriate protocol messages, and implementing this in the client side). --- server/reds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/reds.c') diff --git a/server/reds.c b/server/reds.c index 5ca0d21e..42fad0ce 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3206,7 +3206,7 @@ static int spice_server_char_device_add_interface(SpiceServer *s, } #endif else if (strcmp(char_device->subtype, SUBTYPE_USBREDIR) == 0) { - spicevmc_device_connect(char_device, SPICE_CHANNEL_USBREDIR); + dev_state = spicevmc_device_connect(char_device, SPICE_CHANNEL_USBREDIR); } if (dev_state) { spice_assert(char_device->st); -- cgit