From: Jonathon Jongsma <jjongsma@xxxxxxxxxx> --- server/main-channel.c | 2 +- server/reds.c | 2 +- server/reds.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/main-channel.c b/server/main-channel.c index 0ab3dec..31e65f0 100644 --- a/server/main-channel.c +++ b/server/main-channel.c @@ -1008,7 +1008,7 @@ static uint8_t *main_channel_alloc_msg_rcv_buf(RedChannelClient *rcc, MainChannelClient *mcc = SPICE_CONTAINEROF(rcc, MainChannelClient, base); if (type == SPICE_MSGC_MAIN_AGENT_DATA) { - return reds_get_agent_data_buffer(mcc, size); + return reds_get_agent_data_buffer(reds, mcc, size); } else { return main_chan->recv_buf; } diff --git a/server/reds.c b/server/reds.c index db1f718..d480ce3 100644 --- a/server/reds.c +++ b/server/reds.c @@ -997,7 +997,7 @@ void reds_on_main_agent_tokens(MainChannelClient *mcc, uint32_t num_tokens) num_tokens); } -uint8_t *reds_get_agent_data_buffer(MainChannelClient *mcc, size_t size) +uint8_t *reds_get_agent_data_buffer(RedsState *reds, MainChannelClient *mcc, size_t size) { VDIPortState *dev_state = &reds->agent_state; RedClient *client; diff --git a/server/reds.h b/server/reds.h index 4033724..2659493 100644 --- a/server/reds.h +++ b/server/reds.h @@ -96,8 +96,8 @@ void reds_update_stat_value(uint32_t value); void reds_on_main_agent_start(RedsState *reds, 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); +uint8_t *reds_get_agent_data_buffer(RedsState *reds, MainChannelClient *mcc, size_t size); void reds_on_main_agent_data(MainChannelClient *mcc, void *message, size_t size); void reds_on_main_migrate_connected(int seamless); //should be called when all the clients // are connected to the target -- 2.4.3 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel