summaryrefslogtreecommitdiffstats
path: root/server/reds.h
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-06-24 14:16:59 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-07-03 14:13:41 +0300
commite88f03f16b34505ba2b8510c0670775928f5c0eb (patch)
tree7e9b725773c33edb79e8e0edf87a9f5fe6d84086 /server/reds.h
parentbf1d9007b40d233369a3e202895837c60fe2f87b (diff)
downloadspice-e88f03f16b34505ba2b8510c0670775928f5c0eb.tar.gz
spice-e88f03f16b34505ba2b8510c0670775928f5c0eb.tar.xz
spice-e88f03f16b34505ba2b8510c0670775928f5c0eb.zip
agent: use SpiceCharDeviceWriteBuffer for agent data from the client
This is an intermediate patch. The next patch will actually push the buffer to the device, instead of copying it.
Diffstat (limited to 'server/reds.h')
-rw-r--r--server/reds.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/reds.h b/server/reds.h
index 674052a8..f3d2ffa0 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -147,6 +147,8 @@ void reds_update_stat_value(uint32_t value);
void reds_on_main_agent_start(MainChannelClient *mcc, uint32_t num_tokens);
void reds_on_main_agent_tokens(MainChannelClient *mcc, uint32_t num_tokens);
+uint8_t *reds_get_agent_data_buffer(MainChannelClient *mcc, size_t size);
+void reds_release_agent_data_buffer(uint8_t *buf);
void reds_on_main_agent_data(MainChannelClient *mcc, void *message, size_t size);
void reds_on_main_migrate_connected(void); //should be called when all the clients
// are connected to the target