[Spice-devel] [PATCH 08/15] Change reds_set_client_mm_time_latency() to take RedsState arg
Frediano Ziglio
fziglio at redhat.com
Wed Jan 20 05:25:20 PST 2016
From: Jonathon Jongsma <jjongsma at redhat.com>
---
server/main-dispatcher.c | 4 ++--
server/reds.c | 2 +-
server/reds.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/server/main-dispatcher.c b/server/main-dispatcher.c
index 01290d2..132a693 100644
--- a/server/main-dispatcher.c
+++ b/server/main-dispatcher.c
@@ -126,7 +126,7 @@ static void main_dispatcher_handle_mm_time_latency(void *opaque,
void *payload)
{
MainDispatcherMmTimeLatencyMessage *msg = payload;
- reds_set_client_mm_time_latency(msg->client, msg->latency);
+ reds_set_client_mm_time_latency(reds, msg->client, msg->latency);
red_client_unref(msg->client);
}
@@ -159,7 +159,7 @@ void main_dispatcher_set_mm_time_latency(RedClient *client, uint32_t latency)
MainDispatcherMmTimeLatencyMessage msg;
if (pthread_self() == main_dispatcher.base.self) {
- reds_set_client_mm_time_latency(client, latency);
+ reds_set_client_mm_time_latency(reds, client, latency);
return;
}
diff --git a/server/reds.c b/server/reds.c
index a2e1542..58e45ae 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -2553,7 +2553,7 @@ static void reds_send_mm_time(RedsState *reds)
reds_get_mm_time() - reds->mm_time_latency);
}
-void reds_set_client_mm_time_latency(RedClient *client, uint32_t latency)
+void reds_set_client_mm_time_latency(RedsState *reds, RedClient *client, uint32_t latency)
{
// TODO: multi-client support for mm_time
if (reds->mm_time_enabled) {
diff --git a/server/reds.h b/server/reds.h
index 3f12217..8bf3210 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -113,6 +113,6 @@ void reds_on_client_seamless_migrate_complete(RedsState *reds, RedClient *client
void reds_on_main_channel_migrate(RedsState *reds, MainChannelClient *mcc);
void reds_on_char_device_state_destroy(SpiceCharDeviceState *dev);
-void reds_set_client_mm_time_latency(RedClient *client, uint32_t latency);
+void reds_set_client_mm_time_latency(RedsState *reds, RedClient *client, uint32_t latency);
#endif
--
2.4.3
More information about the Spice-devel
mailing list