summaryrefslogtreecommitdiffstats
path: root/server/main-channel.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-02-06 14:39:39 -0600
committerFabiano FidĂȘncio <fidencio@redhat.com>2015-02-23 23:00:46 +0100
commite49e6e5b8937daf553a615c12925296ef3b68dcb (patch)
tree0b459c415c82101b965ec38345fe8b59705f9902 /server/main-channel.c
parentd4837620ab3a4db4b2aef109872cf1817a2ac0dd (diff)
downloadspice-e49e6e5b8937daf553a615c12925296ef3b68dcb.tar.gz
spice-e49e6e5b8937daf553a615c12925296ef3b68dcb.tar.xz
spice-e49e6e5b8937daf553a615c12925296ef3b68dcb.zip
Add red_channel_get_server()
Instead of poking into the internals of the RedChannel, provide an accessor.
Diffstat (limited to 'server/main-channel.c')
-rw-r--r--server/main-channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/main-channel.c b/server/main-channel.c
index 572fcac1..f53946dd 100644
--- a/server/main-channel.c
+++ b/server/main-channel.c
@@ -1113,7 +1113,7 @@ static MainChannelClient *main_channel_client_create(MainChannel *main_chan, Red
mcc->connection_id = connection_id;
mcc->bitrate_per_sec = ~0;
#ifdef RED_STATISTICS
- if (!(mcc->ping_timer = reds_get_core_interface(main_chan->base.reds)->timer_add(ping_timer_cb, NULL))) {
+ if (!(mcc->ping_timer = reds_get_core_interface(red_channel_get_server((RedChannel*)main_chan))->timer_add(ping_timer_cb, NULL))) {
spice_error("ping timer create failed");
}
mcc->ping_interval = PING_INTERVAL;