[Spice-devel] [PATCH 16/18] Add RedsState arg to red_on_main_agent_tokens()
Frediano Ziglio
fziglio at redhat.com
Thu Feb 4 15:57:48 UTC 2016
From: Jonathon Jongsma <jjongsma at redhat.com>
---
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 a70c605..8b1d7d4 100644
--- a/server/main-channel.c
+++ b/server/main-channel.c
@@ -902,7 +902,7 @@ static int main_channel_handle_parsed(RedChannelClient *rcc, uint32_t size, uint
SpiceMsgcMainAgentTokens *tokens;
tokens = (SpiceMsgcMainAgentTokens *)message;
- reds_on_main_agent_tokens(mcc, tokens->num_tokens);
+ reds_on_main_agent_tokens(reds, mcc, tokens->num_tokens);
break;
}
case SPICE_MSGC_MAIN_ATTACH_CHANNELS:
diff --git a/server/reds.c b/server/reds.c
index 162aa6c..496dfa2 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -940,7 +940,7 @@ void reds_on_main_agent_start(RedsState *reds, MainChannelClient *mcc, uint32_t
reds->agent_state.write_filter.discard_all = FALSE;
}
-void reds_on_main_agent_tokens(MainChannelClient *mcc, uint32_t num_tokens)
+void reds_on_main_agent_tokens(RedsState *reds, MainChannelClient *mcc, uint32_t num_tokens)
{
if (!reds->vdagent) {
return;
diff --git a/server/reds.h b/server/reds.h
index 32e6213..e959864 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -86,7 +86,7 @@ int reds_get_n_channels(RedsState *reds);
/* callbacks from main channel messages */
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);
+void reds_on_main_agent_tokens(RedsState *reds, MainChannelClient *mcc, uint32_t num_tokens);
uint8_t *reds_get_agent_data_buffer(RedsState *reds, MainChannelClient *mcc, size_t size);
void reds_release_agent_data_buffer(RedsState *reds, uint8_t *buf);
void reds_on_main_agent_data(RedsState *reds, MainChannelClient *mcc, void *message, size_t size);
--
2.5.0
More information about the Spice-devel
mailing list