summaryrefslogtreecommitdiffstats
path: root/server/char_device.h
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/char_device.h
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/char_device.h')
-rw-r--r--server/char_device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/char_device.h b/server/char_device.h
index db27bece..72f8abdb 100644
--- a/server/char_device.h
+++ b/server/char_device.h
@@ -208,8 +208,8 @@ void spice_char_device_write_buffer_release(SpiceCharDeviceState *dev,
/* api for specific char devices */
-void spicevmc_device_connect(SpiceCharDeviceInstance *sin,
- uint8_t channel_type);
+SpiceCharDeviceState *spicevmc_device_connect(SpiceCharDeviceInstance *sin,
+ uint8_t channel_type);
void spicevmc_device_disconnect(SpiceCharDeviceInstance *char_device);
#endif // __CHAR_DEVICE_H__