Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/main-channel-client.c | 4 ++-- server/main-channel-client.h | 2 +- server/main-channel.c | 2 +- server/main-channel.h | 2 +- server/reds-private.h | 2 +- server/reds.c | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/main-channel-client.c b/server/main-channel-client.c index f741ed5..bd8481f 100644 --- a/server/main-channel-client.c +++ b/server/main-channel-client.c @@ -331,7 +331,7 @@ void main_channel_client_push_agent_data(MainChannelClient *mcc, uint8_t* data, static RedPipeItem *main_init_item_new(int connection_id, int display_channels_hint, - int current_mouse_mode, + SpiceMouseMode current_mouse_mode, bool is_client_mouse_allowed, int multi_media_time, int ram_hint) @@ -350,7 +350,7 @@ static RedPipeItem *main_init_item_new(int connection_id, void main_channel_client_push_init(MainChannelClient *mcc, int display_channels_hint, - int current_mouse_mode, + SpiceMouseMode current_mouse_mode, bool is_client_mouse_allowed, int multi_media_time, int ram_hint) diff --git a/server/main-channel-client.h b/server/main-channel-client.h index e7dd6bc..6f7a0ac 100644 --- a/server/main-channel-client.h +++ b/server/main-channel-client.h @@ -69,7 +69,7 @@ void main_channel_client_start_net_test(MainChannelClient *mcc, int test_rate); // and calling from main. void main_channel_client_push_init(MainChannelClient *mcc, int display_channels_hint, - int current_mouse_mode, + SpiceMouseMode current_mouse_mode, bool is_client_mouse_allowed, int multi_media_time, int ram_hint); diff --git a/server/main-channel.c b/server/main-channel.c index ebd7e75..bd37308 100644 --- a/server/main-channel.c +++ b/server/main-channel.c @@ -85,7 +85,7 @@ static void main_channel_push_channels(MainChannelClient *mcc) red_channel_client_pipe_add_type(rcc, RED_PIPE_ITEM_TYPE_MAIN_CHANNELS_LIST); } -void main_channel_push_mouse_mode(MainChannel *main_chan, int current_mode, +void main_channel_push_mouse_mode(MainChannel *main_chan, SpiceMouseMode current_mode, bool is_client_mouse_allowed) { MainMouseModeItemInfo info = { diff --git a/server/main-channel.h b/server/main-channel.h index 977cff1..f67e022 100644 --- a/server/main-channel.h +++ b/server/main-channel.h @@ -61,7 +61,7 @@ RedClient *main_channel_get_client_by_link_id(MainChannel *main_chan, uint32_t l MainChannelClient *main_channel_link(MainChannel *, RedClient *client, RedsStream *stream, uint32_t link_id, int migration, RedChannelCapabilities *caps); -void main_channel_push_mouse_mode(MainChannel *main_chan, int current_mode, bool is_client_mouse_allowed); +void main_channel_push_mouse_mode(MainChannel *main_chan, SpiceMouseMode current_mode, bool is_client_mouse_allowed); void main_channel_push_agent_connected(MainChannel *main_chan); void main_channel_push_agent_disconnected(MainChannel *main_chan); void main_channel_push_multi_media_time(MainChannel *main_chan, int time); diff --git a/server/reds-private.h b/server/reds-private.h index 56cb691..3e36292 100644 --- a/server/reds-private.h +++ b/server/reds-private.h @@ -101,7 +101,7 @@ struct RedsState { GList *mig_target_clients; GList *channels; - int mouse_mode; + SpiceMouseMode mouse_mode; bool is_client_mouse_allowed; bool dispatcher_allows_client_mouse; MonitorMode monitor_mode; diff --git a/server/reds.c b/server/reds.c index 1821026..a54b3e0 100644 --- a/server/reds.c +++ b/server/reds.c @@ -304,7 +304,7 @@ static void reds_on_sv_change(RedsState *reds); static void reds_on_vc_change(RedsState *reds); static void reds_on_vm_stop(RedsState *reds); static void reds_on_vm_start(RedsState *reds); -static void reds_set_mouse_mode(RedsState *reds, uint32_t mode); +static void reds_set_mouse_mode(RedsState *reds, SpiceMouseMode mode); static uint32_t reds_qxl_ram_size(RedsState *reds); static int calc_compression_level(RedsState *reds); @@ -603,7 +603,7 @@ int reds_get_mouse_mode(RedsState *reds) return reds->mouse_mode; } -static void reds_set_mouse_mode(RedsState *reds, uint32_t mode) +static void reds_set_mouse_mode(RedsState *reds, SpiceMouseMode mode) { GListIter it; QXLInstance *qxl; -- 2.9.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel