diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-08-14 15:42:36 +0300 |
---|---|---|
committer | Yonit Halperin <yhalperi@redhat.com> | 2012-08-27 09:13:08 +0300 |
commit | 9c6a49c364699ea20d3603572fa5b829612d8914 (patch) | |
tree | e45fe05e5f7d82f84fed916af12d94efe1b756bc /server/char_device.h | |
parent | a180fc5e0b1efdecc3101fbe04d9478e18a940ec (diff) | |
download | spice-9c6a49c364699ea20d3603572fa5b829612d8914.tar.gz spice-9c6a49c364699ea20d3603572fa5b829612d8914.tar.xz spice-9c6a49c364699ea20d3603572fa5b829612d8914.zip |
char_device: don't connect a migrated client if the state of the device might have changed since it was created
If reading/writing from the device have occured before migration data
has arrived, the migration data might no longer be relvant, and we
disconnect the client.
Diffstat (limited to 'server/char_device.h')
-rw-r--r-- | server/char_device.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/char_device.h b/server/char_device.h index 6688e913..d6d75e31 100644 --- a/server/char_device.h +++ b/server/char_device.h @@ -148,13 +148,13 @@ void spice_char_device_reset(SpiceCharDeviceState *dev); /* max_send_queue_size = how many messages we can read from the device and enqueue for this client, * when we have tokens for other clients and no tokens for this one */ -void spice_char_device_client_add(SpiceCharDeviceState *dev, - RedClient *client, - int do_flow_control, - uint32_t max_send_queue_size, - uint32_t num_client_tokens, - uint32_t num_send_tokens, - int wait_for_migrate_data); +int spice_char_device_client_add(SpiceCharDeviceState *dev, + RedClient *client, + int do_flow_control, + uint32_t max_send_queue_size, + uint32_t num_client_tokens, + uint32_t num_send_tokens, + int wait_for_migrate_data); void spice_char_device_client_remove(SpiceCharDeviceState *dev, RedClient *client); |