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/reds.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/reds.h')
-rw-r--r-- | server/reds.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/server/reds.h b/server/reds.h index 87737156..990ea85b 100644 --- a/server/reds.h +++ b/server/reds.h @@ -135,9 +135,6 @@ int reds_has_vdagent(void); // used by inputs channel void reds_handle_agent_mouse_event(const VDAgentMouseState *mouse_state); // used by inputs_channel extern struct SpiceCoreInterface *core; -extern uint64_t bitrate_per_sec; - -#define IS_LOW_BANDWIDTH() (bitrate_per_sec < 10 * 1024 * 1024) // Temporary measures to make splitting reds.c to inputs_channel.c easier void reds_client_disconnect(RedClient *client); |