summaryrefslogtreecommitdiffstats
path: root/server/char_device.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-08-02 23:07:10 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-08-27 09:13:01 +0300
commit520e2cd4f492be3e95b5d070437b3f0db1098d0b (patch)
tree3bf3ff365ac7c38abb7ec3bf1365e57f5c016e7a /server/char_device.h
parent1d2b071d15cb873d0a55cbf04359e2e6a0227ac2 (diff)
downloadspice-520e2cd4f492be3e95b5d070437b3f0db1098d0b.tar.gz
spice-520e2cd4f492be3e95b5d070437b3f0db1098d0b.tar.xz
spice-520e2cd4f492be3e95b5d070437b3f0db1098d0b.zip
char_device: variable token price for write buffers
When restoring migration data, we also restore data that is addressed to the device, and that might have been originated from more than 1 message. When the write buffer that is assoicated with this data is released, we need to free all the relevant tokens.
Diffstat (limited to 'server/char_device.h')
-rw-r--r--server/char_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/char_device.h b/server/char_device.h
index ef8ce3a7..9b702198 100644
--- a/server/char_device.h
+++ b/server/char_device.h
@@ -71,6 +71,7 @@ typedef struct SpiceCharDeviceWriteBuffer {
uint8_t *buf;
uint32_t buf_size;
uint32_t buf_used;
+ uint32_t token_price;
} SpiceCharDeviceWriteBuffer;
typedef void SpiceCharDeviceMsgToClient;