summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-01-16 14:40:25 -0600
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-02-23 23:00:42 +0100
commita88276031c104981da5e9c99a72c06a47203112a (patch)
treea355faf667035c48e6e4a7377f516e43c0b9571e
parent5b16ae7f642ddfad52d8f6bd87de68744fb8d160 (diff)
downloadspice-a88276031c104981da5e9c99a72c06a47203112a.tar.gz
spice-a88276031c104981da5e9c99a72c06a47203112a.tar.xz
spice-a88276031c104981da5e9c99a72c06a47203112a.zip
Change vdi_port_read_buf_process() to take RedsState arg
-rw-r--r--server/reds.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/reds.c b/server/reds.c
index 63adbdac..0449891b 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -607,7 +607,7 @@ static void vdi_port_read_buf_release(uint8_t *data, void *opaque)
}
/* returns TRUE if the buffer can be forwarded */
-static int vdi_port_read_buf_process(int port, VDIReadBuf *buf)
+static int vdi_port_read_buf_process(RedsState *reds, int port, VDIReadBuf *buf)
{
VDIPortState *state = &reds->agent_state;
int res;
@@ -731,7 +731,7 @@ static SpiceCharDeviceMsgToClient *vdi_port_read_one_msg_from_device(SpiceCharDe
} else {
state->read_state = VDI_PORT_READ_STATE_GET_BUFF;
}
- if (vdi_port_read_buf_process(state->vdi_chunk_header.port, dispatch_buf)) {
+ if (vdi_port_read_buf_process(reds, state->vdi_chunk_header.port, dispatch_buf)) {
return dispatch_buf;
} else {
vdi_port_read_buf_unref(dispatch_buf);
@@ -1100,7 +1100,7 @@ void reds_on_main_channel_migrate(MainChannelClient *mcc)
!agent_state->read_filter.msg_data_to_read);
read_buf->len = read_data_len;
- if (vdi_port_read_buf_process(agent_state->vdi_chunk_header.port, read_buf)) {
+ if (vdi_port_read_buf_process(reds, agent_state->vdi_chunk_header.port, read_buf)) {
main_channel_client_push_agent_data(mcc,
read_buf->data,
read_buf->len,