summaryrefslogtreecommitdiff
path: root/server/reds.h
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2015-01-19 16:03:34 -0600
committerFrediano Ziglio <fziglio@redhat.com>2016-01-21 14:42:58 +0000
commite5d3b2bf73b13f0d8c5c4098f16388603d106518 (patch)
treef209bb125b8695c76696abea963599ef82627c41 /server/reds.h
parent6e407a81df330490412cc8c480f7db4e4e85a969 (diff)
Change some functions to take RedsState arg
In preparation for getting rid of the global 'reds' variable, we need to pass the RedsState variable to all functions where it is needed. For now the callers just pass in the global reds variable. Functions changed: - reds_mig_fill_wait_disconnect; - reds_mig_cleanup_wait_disconnect; - reds_mig_remove_wait_disconnect_client; - reds_migrate_channels_seamless; - reds_mig_finished; - reds_mig_switch; - reds_enable_mm_time; - reds_disable_mm_time; - attach_to_red_agent; - reds_char_device_add_state; - reds_char_device_remove_state; - reds_on_char_device_state_destroy; - spice_server_char_device_remove_interface; - migrate_timeout. Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/reds.h')
-rw-r--r--server/reds.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/reds.h b/server/reds.h
index 8bf3210e..e398607d 100644
--- a/server/reds.h
+++ b/server/reds.h
@@ -50,8 +50,8 @@ struct SpiceMigrateState {
/* main thread only */
void reds_handle_channel_event(int event, SpiceChannelEventInfo *info);
-void reds_disable_mm_time(void);
-void reds_enable_mm_time(void);
+void reds_disable_mm_time(RedsState *reds);
+void reds_enable_mm_time(RedsState *reds);
uint32_t reds_get_mm_time(void);
void reds_set_client_mouse_allowed(RedsState *reds,
int is_client_mouse_allowed,
@@ -111,7 +111,7 @@ int reds_on_migrate_dst_set_seamless(RedsState *reds, MainChannelClient *mcc, ui
void reds_on_client_semi_seamless_migrate_complete(RedsState *reds, RedClient *client);
void reds_on_client_seamless_migrate_complete(RedsState *reds, RedClient *client);
void reds_on_main_channel_migrate(RedsState *reds, MainChannelClient *mcc);
-void reds_on_char_device_state_destroy(SpiceCharDeviceState *dev);
+void reds_on_char_device_state_destroy(RedsState *reds, SpiceCharDeviceState *dev);
void reds_set_client_mm_time_latency(RedsState *reds, RedClient *client, uint32_t latency);