summaryrefslogtreecommitdiffstats
path: root/server/char_device.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-11-13 10:39:16 -0500
committerYonit Halperin <yhalperi@redhat.com>2012-11-26 11:08:08 -0500
commitd6b3f73102926c299934c5845bfc26f30af5c719 (patch)
treebfa55cf11761251cfa3e61e380690bdc2d270e52 /server/char_device.h
parent4cd4e7cf19d7fc074510685a95255a3ed785b577 (diff)
downloadspice-d6b3f73102926c299934c5845bfc26f30af5c719.tar.gz
spice-d6b3f73102926c299934c5845bfc26f30af5c719.tar.xz
spice-d6b3f73102926c299934c5845bfc26f30af5c719.zip
char_device.c: add ref count for write-to-device buffers
The ref count is used in order to keep buffers that were in the write queue and now are part of migration data, in case the char_device state is destroyed before we complete sending the migration data.
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 d6d75e31..8bfe4ec6 100644
--- a/server/char_device.h
+++ b/server/char_device.h
@@ -73,6 +73,7 @@ typedef struct SpiceCharDeviceWriteBuffer {
uint32_t buf_size;
uint32_t buf_used;
uint32_t token_price;
+ uint32_t refs;
} SpiceCharDeviceWriteBuffer;
typedef void SpiceCharDeviceMsgToClient;