diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-06-24 14:58:27 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-07-03 14:13:42 +0300 |
commit | da7114d751fdc4d3cfae1f97b3d973bbb0e03584 (patch) | |
tree | 9b9b92b6c86c7009be7bfedaad102efd215ad589 /server/reds.c | |
parent | bc93d5455cf6cff575e1e40cec9ff0f161f06d20 (diff) | |
download | spice-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.c | 2 |
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); |