diff options
author | Alon Levy <alevy@redhat.com> | 2011-04-10 21:11:20 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-08-23 17:57:13 +0300 |
commit | 5bcdf37997a2edfeb70999d16da3a49d15af122e (patch) | |
tree | 57deb8fbcbb5bba2de9ebcd73cf137496b866b7d /server/red_channel.h | |
parent | 614df171931ebc746652537215a5ce83bdf8a458 (diff) | |
download | spice-5bcdf37997a2edfeb70999d16da3a49d15af122e.tar.gz spice-5bcdf37997a2edfeb70999d16da3a49d15af122e.tar.xz spice-5bcdf37997a2edfeb70999d16da3a49d15af122e.zip |
server/main_channel: move latency and bitrate to channel client
They were globals before. This introduces api for other channels
to query the low bandwidth status. The queries themselves are still done
from the wrong context (channel and not channel client) but that's because
the decoupling of channel and channel client will be done in the following
patches.
Note that snd_worker.c got two copied function declarations that belong to
main_channel.h but can't be easily dragged into snd_worker.c since it still
uses it's own RedChannel struct.
Diffstat (limited to 'server/red_channel.h')
-rw-r--r-- | server/red_channel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/red_channel.h b/server/red_channel.h index 874fdf09..60dcf69d 100644 --- a/server/red_channel.h +++ b/server/red_channel.h @@ -345,6 +345,7 @@ void red_channel_client_disconnect(RedChannelClient *rcc); /* Note: the valid times to call red_channel_get_marshaller are just during send_item callback. */ SpiceMarshaller *red_channel_client_get_marshaller(RedChannelClient *rcc); RedsStream *red_channel_client_get_stream(RedChannelClient *rcc); +RedClient *red_channel_client_get_client(RedChannelClient *rcc); /* this is a convenience function for sending messages, sometimes (migration only?) * the serial from the header needs to be available for sending. Note that the header |