summaryrefslogtreecommitdiff
path: root/server/reds.h
diff options
context:
space:
mode:
authorFrediano Ziglio <fziglio@redhat.com>2016-02-12 14:41:57 +0000
committerFrediano Ziglio <fziglio@redhat.com>2016-02-16 10:10:58 +0000
commitaadb94557011af2466dd7e678a1de45415ce424a (patch)
tree0bd0241939027ad6e934b9e9201726642ec64fb6 /server/reds.h
parentfaa5364732c534a833c45c193ca5f50a84273494 (diff)
Remove global 'dispatchers', 'num_active_workers' variables
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 <jjongsma@redhat.com> Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Fabiano FidĂȘncio <fidencio@redhat.com>
Diffstat (limited to 'server/reds.h')
-rw-r--r--server/reds.h5
1 files changed, 4 insertions, 1 deletions
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