From 520e2cd4f492be3e95b5d070437b3f0db1098d0b Mon Sep 17 00:00:00 2001 From: Yonit Halperin Date: Thu, 2 Aug 2012 23:07:10 +0300 Subject: 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. --- server/char_device.h | 1 + 1 file changed, 1 insertion(+) (limited to 'server/char_device.h') 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; -- cgit