From 3881abc0819fc8e09f8a3cf2d1a37513c4874eae Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Wed, 21 Jan 2015 16:58:30 -0600 Subject: [PATCH] inputs_init() -> inputs_channel_new() Rename function to be more consistent Acked-by: Frediano Ziglio Acked-by: Pavel Grunt --- server/inputs-channel.c | 2 +- server/inputs-channel.h | 2 +- server/reds.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/inputs-channel.c b/server/inputs-channel.c index e4974c24..927fa718 100644 --- a/server/inputs-channel.c +++ b/server/inputs-channel.c @@ -605,7 +605,7 @@ static int inputs_channel_handle_migrate_data(RedChannelClient *rcc, return TRUE; } -InputsChannel* inputs_init(void) +InputsChannel* inputs_channel_new(void) { ChannelCbs channel_cbs = { NULL, }; ClientCbs client_cbs = { NULL, }; diff --git a/server/inputs-channel.h b/server/inputs-channel.h index ecd1dd7d..d26ae430 100644 --- a/server/inputs-channel.h +++ b/server/inputs-channel.h @@ -26,7 +26,7 @@ typedef struct InputsChannel InputsChannel; -InputsChannel* inputs_init(void); +InputsChannel* inputs_channel_new(void); const VDAgentMouseState *inputs_channel_get_mouse_state(InputsChannel *inputs); void inputs_channel_on_keyboard_leds_change(InputsChannel *inputs, uint8_t leds); void inputs_channel_set_tablet_logical_size(InputsChannel *inputs, int x_res, int y_res); diff --git a/server/reds.c b/server/reds.c index 3322ede7..420e459b 100644 --- a/server/reds.c +++ b/server/reds.c @@ -3416,7 +3416,7 @@ static int do_spice_init(RedsState *reds, SpiceCoreInterface *core_interface) #endif reds->main_channel = main_channel_init(); - reds->inputs_channel = inputs_init(); + reds->inputs_channel = inputs_channel_new(); reds->mouse_mode = SPICE_MOUSE_MODE_SERVER;