summaryrefslogtreecommitdiffstats
path: root/server/reds.c
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-06-24 14:58:27 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-07-03 14:13:42 +0300
commitda7114d751fdc4d3cfae1f97b3d973bbb0e03584 (patch)
tree9b9b92b6c86c7009be7bfedaad102efd215ad589 /server/reds.c
parentbc93d5455cf6cff575e1e40cec9ff0f161f06d20 (diff)
downloadspice-da7114d751fdc4d3cfae1f97b3d973bbb0e03584.tar.gz
spice-da7114d751fdc4d3cfae1f97b3d973bbb0e03584.tar.xz
spice-da7114d751fdc4d3cfae1f97b3d973bbb0e03584.zip
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).
Diffstat (limited to 'server/reds.c')
-rw-r--r--server/reds.c2
1 files changed, 1 insertions, 1 deletions
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);