From aadb94557011af2466dd7e678a1de45415ce424a Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Fri, 12 Feb 2016 14:41:57 +0000 Subject: Remove global 'dispatchers', 'num_active_workers' variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since these are server-level variables, move them into RedsState. However, num_active_workers was removed because: - each dispatcher always has 1 active worker, so we can determine the number of active workers by counting the dispatchers - it was never actually set correctly. Even if there was more than one worker, this variable was always only set to either 0 or 1. This change required moving a bunch of helper code into RedsState as well, an providing some RedDispatcher interfaces to access dispatcher information from RedsState. Signed-off-by: Jonathon Jongsma Signed-off-by: Frediano Ziglio Acked-by: Fabiano FidĂȘncio --- server/reds.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server/reds.h') diff --git a/server/reds.h b/server/reds.h index df34a884..686aaac8 100644 --- a/server/reds.h +++ b/server/reds.h @@ -111,6 +111,9 @@ uint32_t reds_get_streaming_video(const RedsState *reds); spice_wan_compression_t reds_get_jpeg_state(const RedsState *reds); spice_wan_compression_t reds_get_zlib_glz_state(const RedsState *reds); SpiceCoreInterfaceInternal* reds_get_core_interface(RedsState *reds); -int calc_compression_level(RedsState *reds); +void reds_update_client_mouse_allowed(RedsState *reds); +gboolean reds_use_client_monitors_config(RedsState *reds); +void reds_client_monitors_config(RedsState *reds, VDAgentMonitorsConfig *monitors_config); +void reds_set_mm_time(RedsState *reds, uint32_t mm_time); #endif -- cgit v1.2.3